: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;
}

/* ===== 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);
}