:root {
    --primary: #1f2937;
    --primary-dark: #19202b;
    --primary-light: #00b4cc;
    --accent: #0092a3;
    --accent-light: #00b4cc;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --primary-50: #f0fdff;
    --primary-100: #e0f8fc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --success-50: #ecfdf5;
    --success-500: #10b981;
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --error-50: #fef2f2;
    --error-500: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    transition-property: color, background-color, border-color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

body, body *:not(img):not(svg):not(canvas):not(video) {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}



/* ===== CANVAS BACKGROUND ===== */
.canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
}

/* Дополнительные стили для контента поверх canvas */
.main-content {
    position: relative;
    z-index: 1;
}

/* Улучшенные стили для темных карточек поверх фона */
.modern-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 180, 204, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(0, 180, 204, 0.1);
}

/* Адаптация навигации под canvas фон */
.nav-gradient {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}



/* ===== NAVIGATION STYLES ===== */
.nav-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.premium-border {
    border-bottom: 2px solid var(--gold);
}

.balance-glow {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-btn:hover i {
    transform: rotate(180deg);
}

.account-switch {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.account-switch:hover {
    background: rgba(255, 255, 255, 0.15);
}

.account-switch-item {
    border-radius: 8px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.account-switch-item.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== SIDE MOBILE MENU STYLES ===== */
.side-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-overlay {
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-section {
    border-bottom: 1px solid #f3f4f6;
}

.side-menu-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f9fafb;
}

.side-menu-links {
    padding: 0.5rem 0;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.side-menu-link:hover {
    background: #f3f4f6;
    color: #374151;
    border-left-color: #0092a3;
}

.side-menu-link.active {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

/* ===== AJAX LOADER STYLES ===== */
.ajax-loader {
    transition: transform 0.3s ease;
}

.ajax-loader.active {
    transform: translateY(0);
}

.loader-progress {
    animation: loadingProgress 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        transform: translateX(-100%);
        opacity: 0.7;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0.7;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.notification-container {
    position: relative;
}

.notification-btn {
    position: relative;
    transition: all 0.3s ease;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-container:hover .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    color: #374151;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===== ENHANCED ANIMATIONS ===== */
.logo-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-hover:hover {
    transform: translateY(-1px);
}

.logo-pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== SIDE MENU BUTTON ANIMATIONS ===== */
.side-menu-btn:hover .line {
    transform: scaleX(0.8);
}

.side-menu-btn:hover .line:nth-child(1) {
    transform: translateX(2px) scaleX(0.8);
}

.side-menu-btn:hover .line:nth-child(3) {
    transform: translateX(-2px) scaleX(0.8);
}

.side-menu-btn.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.side-menu-btn.open .line:nth-child(2) {
    opacity: 0;
}

.side-menu-btn.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MODERN CARDS & CONTAINERS ===== */
.modern-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ===== ENHANCED STATS CARDS ===== */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .side-menu {
        width: 100%;
        max-width: 320px;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -50px;
    }
    
    .stats-card {
        padding: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary-50 {
    background-color: var(--primary-50);
}

.text-primary {
    color: var(--primary);
}

/* Плеер */
.audio-player-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}
        
.audio-player {
    width: 300px;
    background: #1f2937;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
    display: none;
}
        
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
        
.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}
        
.progress-container {
    width: 100%;
    height: 5px;
    background: #555;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}
        
.progress-bar {
    height: 100%;
    background: #48bb78;
    border-radius: 5px;
    width: 0%;
}
        
.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
        
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
        
.player-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
        
.player-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}
        
.player-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #48bb78;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 30%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.track-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    border-top: 1px solid #444;
    padding-top: 10px;
}
        
.track-item {
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
    margin-bottom: 2px;
}
        
.track-item:hover {
    background: #444;
}
        
.track-item.active {
    background: #48bb78;
    color: white;
}
        
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}
        
.page-btn {
    background: #444;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}
        
.page-btn.active {
    background: #4CAF50;
}
        
.page-btn:hover {
    background: #555;
}

.loading-tracks {
    padding: 20px;
    text-align: center;
    color: #aaa;
}

.error {
    color: #ff6b6b;
    padding: 20px;
    text-align: center;
}

.error i {
    margin-right: 8px;
}

#prevBtn, #nextBtn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.upload-content {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-upload {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.player-actions {
    display: flex;
    gap: 10px;
}

.upload-btn {
    background: none;
    border: none;
    color: #48bb78;
    font-size: 18px;
    cursor: pointer;
}

.file-drop-area {
    border: 2px dashed #48bb78;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.file-drop-area:hover {
    background: rgba(76, 175, 80, 0.1);
}

.file-msg {
    color: #aaa;
}

.file-msg i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    color: #48bb78;
}

#fileInput {
    display: none;
}


.upload-progress {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    height: 6px;
    background: #444;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: #48bb78;
    width: 0%;
    transition: width 0.3s;
}


.upload-submit-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
}

.upload-submit-btn:hover {
    background: #3e8e41;
}

.upload-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification i {
    font-size: 20px;
}