        /* ============================================
           ROOT VARIABLES
           ============================================ */
        :root {
            --primary: #dc3545;
            --primary-dark: #bb2d3b;
            --primary-light: rgba(220,53,69,0.1);
            --dark: #0f172a;
            --dark-soft: #1e293b;
            --gray: #64748b;
            --gray-light: #94a3b8;
            --gray-soft: #e2e8f0;
            --light: #f8fafc;
            --white: #ffffff;
            --success: #10b981;
            --warning: #ffc107;
            --info: #0dcaf0;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            --radius-full: 9999px;
            --space-xs: 0.25rem;
            --space-sm: 0.5rem;
            --space-md: 1rem;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --space-2xl: 3rem;
            --space-3xl: 4rem;
            --sidebar-width: 280px;
            --navbar-height: 64px;
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--dark);
            background: var(--white);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        ::-webkit-scrollbar { width: 10px; height: 10px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #dc3545; border-radius: var(--radius-full); }
        ::-webkit-scrollbar-thumb:hover { background: #bb2d3b; }
        * { scrollbar-width: thin; scrollbar-color: #dc3545 transparent; }

        /* ===== MODERN NAVBAR ===== */
        .navbar-modern {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            z-index: 1050;
            padding: 0 1rem;
            height: var(--navbar-height);
        }
        
        @media (min-width: 1400px) {
            .navbar-modern {
                padding: 0 2rem;
            }
        }

        .navbar-container {
            max-width: 1400px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .navbar-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.25rem;
            letter-spacing: -0.02em;
            flex-shrink: 0;
        }
        
        @media (min-width: 768px) {
            .navbar-logo {
                font-size: 1.5rem;
            }
        }

        .logo-icon {
            width: 28px;
            height: 28px;
            color: var(--primary);
        }
        
        @media (min-width: 768px) {
            .logo-icon {
                width: 32px;
                height: 32px;
            }
        }

        .logo-text { color: var(--dark); }
        .logo-accent { color: var(--primary); }

        .navbar-menu {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.85rem;
            border-radius: 12px;
            transition: all 0.2s ease;
            white-space: nowrap;
            position: relative;
        }
        
        @media (min-width: 1200px) {
            .nav-link {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
        }

        .nav-link i { font-size: 0.9rem; color: var(--primary); }
        .nav-link:hover, .nav-link.active {
            background: var(--primary-light);
            color: var(--primary);
        }

        .nav-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--primary);
            color: white;
            font-size: 0.6rem;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 20px;
        }

        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-shrink: 0;
        }

        .balance-card {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.75rem;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
            border-radius: 40px;
            font-weight: 600;
        }

        .balance-card i { color: var(--success); font-size: 0.85rem; }
        .balance-amount { color: var(--success); font-size: 0.85rem; }
        .balance-currency { color: var(--gray); font-size: 0.7rem; }

        .user-menu { position: relative; }

        .user-avatar-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 40px;
            transition: all 0.2s ease;
        }

        .user-avatar-btn:hover { background: var(--light); }

        .user-avatar-modern {
            width: 34px;
            height: 34px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        @media (min-width: 768px) {
            .user-avatar-modern {
                width: 38px;
                height: 38px;
            }
        }

        .user-name { 
            display: none;
            color: var(--dark); 
            font-weight: 500; 
            font-size: 0.9rem; 
        }
        
        @media (min-width: 992px) {
            .user-name { display: block; }
        }
        
        .user-avatar-btn i { font-size: 0.75rem; color: var(--gray); }

        .user-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 320px;
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow-xl);
            padding: 1rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 1060;
        }

        .user-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-header { padding-bottom: 1rem; }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .user-avatar-large {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.5rem;
        }

        .user-name-large { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 0.25rem; }
        .user-id { font-size: 0.75rem; color: var(--gray); }

        .user-balance-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: var(--light);
            border-radius: 12px;
        }

        .balance-label { font-size: 0.8rem; color: var(--gray); }
        .balance-value { font-weight: 700; color: var(--success); }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            color: var(--gray);
            text-decoration: none;
            font-size: 0.85rem;
            border-radius: 10px;
            transition: all 0.2s ease;
        }

        .dropdown-item i { width: 20px; font-size: 1rem; color: var(--primary); }
        .dropdown-item:hover { background: var(--light); color: var(--dark); }
        .dropdown-divider { height: 1px; background: var(--gray-soft); margin: 0.5rem 0; }
        .dropdown-item.success { color: var(--success); }
        .dropdown-item.info { color: #0dcaf0; }
        .dropdown-item.danger { color: var(--primary); }
        .dropdown-item .badge { margin-left: auto; background: var(--primary); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; }

        .btn-outline-modern {
            padding: 0.5rem 1.25rem;
            border: 1.5px solid var(--primary);
            border-radius: 40px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            background: transparent;
        }

        .btn-outline-modern:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .btn-primary-modern {
            padding: 0.5rem 1.25rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 40px;
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }

        .btn-primary-modern:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(220,53,69,0.3);
        }

        /* ============================================
   УЛУЧШЕННАЯ МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1040;
    padding-bottom: var(--safe-area-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 40px;
    flex: 1;
    text-align: center;
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: #dc3545;
}

.mobile-bottom-nav .nav-item.active i {
    color: #dc3545;
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item.active span {
    color: #dc3545;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
    background: rgba(220, 53, 69, 0.1);
}

.mobile-notif-badge {
    position: absolute;
    top: 0;
    right: 15%;
    min-width: 18px;
    height: 18px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px white;
    z-index: 5;
}

@media (max-width: 480px) {
    .mobile-bottom-nav .nav-items {
        padding: 0.4rem 0.5rem;
    }
    .mobile-bottom-nav .nav-item {
        padding: 0.4rem 0.5rem;
    }
    .mobile-bottom-nav .nav-item i {
        font-size: 1.1rem;
    }
    .mobile-bottom-nav .nav-item span {
        font-size: 0.55rem;
    }
    .mobile-bottom-nav .nav-item.active i {
        transform: translateY(-1px);
    }
}
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: block;  /* ← Показывается на мобильных */
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
/* ============================================
   УЛУЧШЕННОЕ МОБИЛЬНОЕ МЕНЮ (ВЫЕЗЖАЮЩЕЕ)
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1065;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    border-radius: 24px 0 0 24px;
}

.mobile-nav-panel.active {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.5rem 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    position: relative;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
}

.mobile-nav-close:active {
    transform: scale(0.95);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-user-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mobile-avatar-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: #dc3545;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.mobile-user-info {
    flex: 1;
}

.mobile-user-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.mobile-user-balance {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-auth-buttons .w-100 {
    width: 100%;
    text-align: center;
    display: block;
}

.mobile-role-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem;
    border-radius: 60px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-role-switch .role-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-role-switch .role-btn i {
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.mobile-role-switch .role-btn.active {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.mobile-role-switch .role-btn.active i {
    color: white;
}

.mobile-role-switch .role-btn:active {
    transform: scale(0.96);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem 2rem 1rem;
    scrollbar-width: thin;
}

.mobile-nav-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-body::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.mobile-nav-body::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

.mobile-menu-group {
    margin-bottom: 1.5rem;
}

.menu-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin: 0.125rem 0;
}

.mobile-nav-item i {
    width: 24px;
    font-size: 1rem;
    color: #dc3545;
    transition: all 0.2s ease;
}

.mobile-nav-item span {
    flex: 1;
}

.mobile-nav-item .badge {
    margin-left: auto;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.mobile-nav-item:hover {
    background: #f1f5f9;
}

.mobile-nav-item.active {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.mobile-nav-item.active i {
    color: #dc3545;
}

.mobile-nav-item.success {
    color: #10b981;
}

.mobile-nav-item.info {
    color: #0dcaf0;
}

.mobile-nav-item.danger {
    color: #dc3545;
}

.mobile-nav-item:active {
    transform: scale(0.98);
}

.mobile-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

/* Анимация появления пунктов меню */
.mobile-nav-panel .mobile-nav-item {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-panel.active .mobile-nav-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-panel.active .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(6) { transition-delay: 0.30s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(8) { transition-delay: 0.40s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(9) { transition-delay: 0.45s; }
.mobile-nav-panel.active .mobile-nav-item:nth-child(10) { transition-delay: 0.50s; }

@media (max-width: 480px) {
    .mobile-nav-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .mobile-nav-header {
        padding: 1.25rem 1rem;
        border-radius: 0;
    }
    .mobile-nav-body {
        padding: 0.75rem 0.75rem 1.5rem 0.75rem;
    }
    .mobile-nav-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    .menu-group-title {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }
}

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: var(--sidebar-width);
            position: fixed;
            top: var(--navbar-height);
            left: 0;
            bottom: 0;
            background: white;
            border-right: 1px solid var(--gray-soft);
            z-index: 1020;
            overflow-y: auto;
            transition: transform 0.3s ease;
            transform: translateX(0);
        }
        
        @media (max-width: 992px) {
            .sidebar { transform: translateX(-100%); }
            .sidebar.active { transform: translateX(0); }
        }
        
        .sidebar .nav-link {
            color: var(--dark);
            border-radius: var(--radius-lg);
            transition: all 0.2s;
            padding: 0.75rem 1rem;
            margin: 0.125rem 0;
        }
        .sidebar .nav-link:hover { background: var(--primary-light); color: var(--primary); }
        .sidebar .nav-link i { width: 20px; color: var(--primary); }
        .sidebar .nav-link.active {
            background: var(--primary-light);
            color: var(--primary) !important;
        }
        
        .role-btn {
            flex: 1;
            padding: var(--space-sm);
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 0.875rem;
            border: none;
            background: transparent;
            color: var(--gray);
            transition: all 0.2s;
        }
        .role-btn.active { background: var(--primary); color: white; }

        /* ===== MAIN CONTENT ===== */
        .page-wrapper {
            margin-top: var(--navbar-height);
            min-height: calc(100vh - var(--navbar-height));
            display: flex;
            flex-direction: column;
        }

        .main-content { flex: 1 0 auto; }
        .page-wrapper:not(.has-sidebar) .main-content { padding: 0; }
        .page-wrapper.has-sidebar .main-content {
            margin-left: var(--sidebar-width);
            padding: var(--space-xl);
        }

        /* ===== FOOTER ===== */
        .site-footer {
            background: #0f172a;
            color: white;
            padding: var(--space-3xl) 0 var(--space-xl);
            width: 100%;
            flex-shrink: 0;
            margin-top: auto;
        }

        .page-wrapper.has-sidebar .site-footer {
            margin-left: var(--sidebar-width);
            width: calc(100% - var(--sidebar-width));
        }

        @media (max-width: 992px) {
            .page-wrapper.has-sidebar .main-content {
                margin-left: 0;
                padding: var(--space-lg);
            }
            .page-wrapper.has-sidebar .site-footer {
                margin-left: 0;
                width: 100%;
            }
        }

        /* ===== АДАПТИВНЫЕ СТИЛИ ===== */
        @media (max-width: 1024px) {
            .desktop-menu {
                display: none !important;
            }
            
            .mobile-menu-btn {
                display: flex !important;
            }
            /* Кнопка бургера - по умолчанию скрыта на десктопе */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--light);
}

/* Анимация для открытого бургера (крестик) */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
            
            .balance-card {
                display: none !important;
            }
            
            .user-name {
                display: none !important;
            }
            
            .user-avatar-btn i {
                display: none !important;
            }
            
            .user-avatar-btn {
                padding: 0 !important;
            }
            
            .navbar-actions .btn-outline-modern,
            .navbar-actions .btn-primary-modern {
                display: none !important;
            }
            
            .page-wrapper.has-bottom-nav {
                padding-bottom: calc(70px + var(--safe-area-bottom));
            }
        }

        @media (max-width: 768px) {
            .page-wrapper.has-sidebar .main-content {
                padding: var(--space-md);
            }
        }

        @media (max-width: 480px) {
            .navbar-modern {
                padding: 0 0.75rem;
            }
            .logo-text {
                font-size: 1.1rem;
            }
            .logo-icon {
                width: 24px;
                height: 24px;
            }
            .user-avatar-modern {
                width: 32px;
                height: 32px;
                font-size: 0.8rem;
            }
        }

        /* Кнопка поддержки */
        .support-float-btn {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
            box-shadow: 0 4px 15px rgba(220,53,69,0.3);
            z-index: 1030;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 2px solid rgba(255,255,255,0.2);
        }
        
        .support-float-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(220,53,69,0.4);
            color: white;
        }
        
        .support-float-btn .support-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ffc107;
            color: #1e293b;
            font-size: 10px;
            font-weight: bold;
            min-width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            border: 2px solid white;
        }
        
        @media (max-width: 1024px) {
            .support-float-btn {
                bottom: 90px;
            }
        }
        
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            .support-float-btn {
                bottom: calc(90px + env(safe-area-inset-bottom));
            }
        }

        /* Анимации */
        @keyframes float {
            0%, 100% { transform: translateY(0) translateX(0); }
            50% { transform: translateY(-20px) translateX(10px); }
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .hover-lift { transition: transform 0.3s ease; }
        .hover-lift:hover { transform: translateY(-5px); }
        
        [data-aos] { pointer-events: none; }
        [data-aos].aos-animate { pointer-events: auto; }

        /* ============================================
           PROFILE PAGE STYLES (user_account, settings, insert, my_purchases, referals)
           ============================================ */
        .profile-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem;
        }

        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .profile-title { flex: 1; }
        .profile-name { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--dark); }
        .profile-welcome { color: var(--gray); font-size: 0.9rem; }

        .profile-actions { display: flex; gap: 0.75rem; }

        .btn-action {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.25rem;
            border-radius: 40px;
            font-weight: 500;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-action i { font-size: 1rem; }
        .btn-outline { border: 1px solid var(--gray-soft); background: white; color: var(--gray); }
        .btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
        .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(220,53,69,0.3); }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: white;
            border-radius: 20px;
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: all 0.2s ease;
            border: 1px solid var(--gray-soft);
        }

        .stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .stat-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
        .stat-icon.primary { background: rgba(13,110,253,0.1); color: #0d6efd; }
        .stat-icon.warning { background: rgba(255,193,7,0.1); color: #ffc107; }
        .stat-icon.info { background: rgba(13,202,240,0.1); color: #0dcaf0; }
        .stat-icon.danger { background: rgba(220,53,69,0.1); color: var(--primary); }

        .stat-info { flex: 1; }
        .stat-label { font-size: 0.7rem; text-transform: uppercase; color: var(--gray); letter-spacing: 0.5px; }
        .stat-value { font-size: 1.25rem; font-weight: 700; color: var(--dark); display: block; }
        .stat-sub { font-size: 0.7rem; color: var(--gray-light); }

        .profile-main {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 1.5rem;
        }

        .profile-card {
            background: white;
            border-radius: 24px;
            border: 1px solid var(--gray-soft);
            overflow: hidden;
            margin-bottom: 1.5rem;
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--gray-soft);
            flex-wrap: wrap;
        }

        .card-header i { font-size: 1.25rem; color: var(--primary); }
        .card-header h3 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--dark); flex: 1; }
        .card-link { font-size: 0.75rem; color: var(--primary); text-decoration: none; }
        .card-link:hover { text-decoration: underline; }
        .card-body { padding: 1.25rem 1.5rem; }
        .card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-soft); text-align: center; font-size: 0.85rem; color: var(--gray); }

        /* Form Styles */
        .settings-form { display: flex; flex-direction: column; gap: 1.25rem; }
        .form-group { display: flex; flex-direction: column; gap: 0.5rem; }

        .form-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--gray);
        }

        .form-label i { width: 18px; color: var(--primary); }
        .input-wrapper { position: relative; }

        .form-input {
            width: 100%;
            padding: 0.75rem 2.5rem 0.75rem 1rem;
            border: 1.5px solid var(--gray-soft);
            border-radius: 12px;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            background: white;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
        }

        .form-input.text-center {
            text-align: center;
            letter-spacing: 4px;
            font-size: 1.2rem;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--gray);
            padding: 4px;
        }

        .toggle-password:hover { color: var(--primary); }
        .form-hint { font-size: 0.7rem; color: var(--gray-light); margin-top: 0.25rem; }

        .btn-submit {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 0.5rem;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(220,53,69,0.3);
        }
        
        .btn-outline-full {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: white;
            border: 1.5px solid var(--gray-soft);
            border-radius: 40px;
            color: var(--gray);
            font-weight: 500;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
        }

        .btn-outline-full:hover { border-color: var(--primary); color: var(--primary); }

        .alert-success, .alert-error {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }

        .alert-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
        .alert-error { background: rgba(220,53,69,0.1); color: var(--primary); border: 1px solid rgba(220,53,69,0.2); }

        .info-message {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 1rem;
            background: var(--light);
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .info-message i { font-size: 1.25rem; color: #0dcaf0; }
        .info-message strong { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; }
        .info-message p { font-size: 0.8rem; color: var(--gray); margin: 0; }

        /* Amount Buttons */
        .amount-buttons {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.75rem;
            flex-wrap: wrap;
        }

        .btn-amount {
            flex: 1;
            padding: 0.6rem 0.5rem;
            background: var(--light);
            border: 1px solid var(--gray-soft);
            border-radius: 16px;
            text-align: center;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-amount i { display: block; font-size: 1rem; margin-bottom: 0.25rem; color: var(--primary); }
        .btn-amount .amount-value { display: block; font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-top: 0.25rem; }
        .btn-amount:hover { border-color: var(--primary); background: rgba(220,53,69,0.05); transform: translateY(-2px); }
        .btn-amount.active { border-color: var(--primary); background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(220,53,69,0.05)); }
        .btn-amount.active .amount-value { color: var(--primary); }

        /* Commission Card */
        .commission-card {
            background: linear-gradient(135deg, var(--light), white);
            border-radius: 20px;
            padding: 1rem;
            margin: 1.25rem 0;
            border: 1px solid var(--gray-soft);
        }

        .commission-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dark);
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--gray-soft);
            margin-bottom: 0.75rem;
        }

        .commission-header i { color: var(--primary); font-size: 1rem; }
        .commission-body { display: flex; flex-direction: column; gap: 0.5rem; }

        .commission-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
        }

        .commission-row .commission-label { color: var(--gray); }
        .commission-row .commission-value { font-weight: 500; color: var(--dark); }
        .commission-row.fee .commission-value { color: var(--primary); }
        .commission-row.total { margin-top: 0.25rem; font-weight: 600; }
        .commission-row.total .commission-label { font-weight: 600; color: var(--dark); }
        .commission-row.total .commission-value { font-size: 1rem; font-weight: 700; color: var(--success); }
        .commission-divider { height: 1px; background: var(--gray-soft); margin: 0.5rem 0; }

        /* Status Badges */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 500;
        }

        .status-badge i { font-size: 0.65rem; }
        .status-success { background: rgba(16,185,129,0.1); color: var(--success); }
        .status-warning { background: rgba(255,193,7,0.1); color: #ffc107; }
        .status-danger { background: rgba(220,53,69,0.1); color: var(--primary); }
        .status-info { background: rgba(13,202,240,0.1); color: #0dcaf0; }
        .status-primary { background: rgba(13,110,253,0.1); color: #0d6efd; }
        .status-secondary { background: rgba(100,116,139,0.1); color: var(--gray); }

        /* Payment Redirect */
        .payment-redirect {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 70vh;
            padding: 2rem;
        }

        .redirect-card {
            max-width: 500px;
            width: 100%;
            background: white;
            border-radius: 32px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border: 1px solid var(--gray-soft);
        }

        .redirect-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-light), rgba(220,53,69,0.05));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
        }

        .redirect-icon i { font-size: 2.5rem; color: var(--primary); }
        .redirect-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
        .redirect-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }

        .payment-details {
            background: var(--light);
            border-radius: 16px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--gray-soft);
        }

        .detail-item:last-child { border-bottom: none; }
        .detail-label { font-size: 0.8rem; color: var(--gray); }
        .detail-value { font-weight: 600; color: var(--dark); }
        .detail-value.success { color: var(--success); }

        .redirect-spinner { margin: 1.5rem 0; }
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--gray-soft);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 1rem;
        }

        .redirect-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .redirect-buttons .btn-submit,
        .redirect-buttons .btn-outline-full { flex: 1; margin: 0; }

        /* Purchases Page Styles */
        .purchases-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            border-bottom: 1px solid var(--gray-soft);
            padding-bottom: 1rem;
        }

        .purchase-tab {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.25rem;
            border-radius: 40px;
            background: white;
            border: 1px solid var(--gray-soft);
            color: var(--gray);
            font-weight: 500;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .purchase-tab i { font-size: 1rem; }
        .purchase-tab:hover { border-color: var(--primary); color: var(--primary); }
        .purchase-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
        .purchase-tab.active i { color: white; }
        .purchase-tab .badge { background: rgba(0,0,0,0.1); margin-left: 0.5rem; }
        .purchase-tab.active .badge { background: rgba(255,255,255,0.2); color: white; }
        .purchase-badge { background: rgba(220,53,69,0.1); color: #dc3545; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 20px; display: inline-block; margin: 0.1rem; }
        .purchase-badge.active { background: rgba(16,185,129,0.1); color: var(--success); }
        .purchase-badge.expired { background: rgba(100,116,139,0.1); color: var(--gray); }
        .purchase-badge.pending { background: rgba(255,193,7,0.1); color: #ffc107; }

        .auto-purchase-switch {
            width: 44px;
            height: 24px;
            appearance: none;
            background: var(--gray-soft);
            border-radius: 24px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .auto-purchase-switch:checked { background: var(--success); }
        .auto-purchase-switch::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: transform 0.2s ease;
        }

        .auto-purchase-switch:checked::before { transform: translateX(20px); }

        /* Referrals Page Styles */
        .referral-link-card {
            background: linear-gradient(135deg, var(--dark), #1e293b);
            border-radius: 24px;
            padding: 1.5rem;
            color: white;
            margin-bottom: 1.5rem;
        }

        .referral-link-input {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .referral-link-input input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 12px;
            color: white;
            font-size: 0.85rem;
        }

        .referral-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .referral-stat-value { font-size: 1.5rem; font-weight: 700; display: block; }
        .referral-stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; }

        .referral-banners {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .referral-banner-card {
            background: var(--light);
            border-radius: 16px;
            padding: 1rem;
            text-align: center;
        }

        .referral-banner-card img {
            max-width: 100%;
            border-radius: 8px;
            margin-bottom: 0.75rem;
        }

        .referral-banner-code {
            font-size: 0.7rem;
            color: var(--gray);
            word-break: break-all;
            background: white;
            padding: 0.5rem;
            border-radius: 8px;
            margin-top: 0.5rem;
        }

        .social-share-buttons {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .social-share-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.6rem;
            border-radius: 40px;
            background: white;
            border: 1px solid var(--gray-soft);
            color: var(--gray);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.2s ease;
        }

        .social-share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
        .social-share-btn.vk:hover { background: #4c75a3; border-color: #4c75a3; color: white; }
        .social-share-btn.tg:hover { background: #26a5e4; border-color: #26a5e4; color: white; }
        .social-share-btn.wa:hover { background: #25d366; border-color: #25d366; color: white; }

        .referral-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            border-bottom: 1px solid var(--gray-soft);
        }

        .referral-list-item:last-child { border-bottom: none; }
        .referral-user { display: flex; align-items: center; gap: 0.75rem; }
        .referral-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-light), rgba(220,53,69,0.05));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--primary);
        }
        .referral-name { font-weight: 500; font-size: 0.9rem; }
        .referral-date { font-size: 0.7rem; color: var(--gray); }
        .referral-earnings { font-weight: 600; color: var(--success); }

        /* Social Networks */
        .social-grid {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .social-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem;
            background: var(--light);
            border-radius: 12px;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .social-info { display: flex; align-items: center; gap: 0.75rem; }
        .social-info img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
        .social-name { font-weight: 500; font-size: 0.9rem; text-transform: capitalize; }

        .btn-unlink {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: none;
            border: 1px solid var(--gray-soft);
            border-radius: 30px;
            color: var(--gray);
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-unlink:hover { border-color: var(--primary); color: var(--primary); }

        .pin-status {
            font-size: 0.7rem;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
        }

        .pin-status.active { background: rgba(16,185,129,0.1); color: var(--success); }
        .pin-status.inactive { background: rgba(255,193,7,0.1); color: #ffc107; }

        .password-strength { font-size: 0.7rem; margin-top: 0.25rem; }
        .password-strength.weak { color: var(--primary); }
        .password-strength.medium { color: #ffc107; }
        .password-strength.strong { color: var(--success); }

        .password-match { font-size: 0.7rem; margin-top: 0.25rem; }
        .password-match.match { color: var(--success); }
        .password-match.mismatch { color: var(--primary); }

        /* Modal */
        .modal-content {
            border-radius: 24px;
            border: none;
            overflow: hidden;
        }

        .modal-header {
            background: linear-gradient(135deg, var(--dark), #1e293b);
            color: white;
            border: none;
            padding: 1.25rem 1.5rem;
        }

        .modal-header i { font-size: 1.25rem; margin-right: 0.5rem; }
        .modal-header h5 { margin: 0; flex: 1; }
        .modal-header .btn-close { filter: brightness(0) invert(1); }
        .modal-body { padding: 1.5rem; }
        .modal-actions { display: flex; gap: 1rem; margin-top: 1rem; }

        /* Empty State */
        .empty-state { text-align: center; padding: 2rem; }
        .empty-state i { font-size: 2.5rem; color: var(--gray-light); margin-bottom: 0.75rem; display: block; }
        .empty-state p { color: var(--gray); font-size: 0.85rem; margin: 0; }

        /* Chart */
        .chart-container { position: relative; width: 100%; }
        #activityChart { height: 280px; width: 100%; }

        /* Actions List */
        .actions-list { display: flex; flex-direction: column; gap: 1rem; }
        .action-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--gray-soft);
        }
        .action-item:last-child { border-bottom: none; padding-bottom: 0; }
        .action-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }
        .action-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
        .action-icon.danger { background: rgba(220,53,69,0.1); color: var(--primary); }
        .action-icon.warning { background: rgba(255,193,7,0.1); color: #ffc107; }
        .action-icon.primary { background: rgba(13,110,253,0.1); color: #0d6efd; }
        .action-icon.secondary { background: rgba(100,116,139,0.1); color: var(--gray); }
        .action-content { flex: 1; }
        .action-text { font-size: 0.85rem; font-weight: 500; color: var(--dark); }
        .action-time { font-size: 0.7rem; color: var(--gray); }

        /* Profile Avatar */
        .profile-avatar {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--gray-soft);
        }

        .avatar-large {
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 2rem;
        }

        .profile-details h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
        .profile-id { font-size: 0.75rem; color: var(--gray); display: block; margin-bottom: 0.5rem; }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .info-item { display: flex; flex-direction: column; gap: 0.25rem; }
        .info-label { font-size: 0.7rem; text-transform: uppercase; color: var(--gray); letter-spacing: 0.5px; }
        .info-value { font-size: 0.85rem; font-weight: 500; color: var(--dark); word-break: break-word; }

        .finance-list { display: flex; flex-direction: column; gap: 0.75rem; }
        .finance-item { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--gray); }
        .finance-item .success { color: var(--success); font-weight: 600; }
        .finance-item .danger { color: var(--primary); font-weight: 600; }
        .finance-item .warning { color: #ffc107; font-weight: 600; }
        .finance-item.total { font-weight: 700; color: var(--dark); }
        .finance-divider { height: 1px; background: var(--gray-soft); margin: 0.75rem 0; }

        .notifications-list { display: flex; flex-direction: column; gap: 1rem; }
        .notification-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--gray-soft);
            position: relative;
        }
        .notification-item:last-child { border-bottom: none; padding-bottom: 0; }
        .notification-item.unread {
            background: rgba(220,53,69,0.03);
            margin: -0.5rem -0.5rem 0;
            padding: 0.5rem;
            border-radius: 16px;
        }
        .notification-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .notification-icon.primary { background: rgba(13,110,253,0.1); color: #0d6efd; }
        .notification-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
        .notification-icon.warning { background: rgba(255,193,7,0.1); color: #ffc107; }
        .notification-icon.danger { background: rgba(220,53,69,0.1); color: var(--primary); }
        .notification-icon.secondary { background: rgba(100,116,139,0.1); color: var(--gray); }
        .notification-content { flex: 1; }
        .notification-title { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
        .notification-message { font-size: 0.75rem; color: var(--gray); margin-top: 0.25rem; }
        .notification-time { font-size: 0.65rem; color: var(--gray-light); margin-top: 0.25rem; }
        .notification-new { font-size: 0.6rem; background: var(--primary); color: white; padding: 2px 6px; border-radius: 20px; flex-shrink: 0; }

        /* Tickets Page Styles */
        .tickets-list { display: flex; flex-direction: column; }
        .ticket-item {
            padding: 1.25rem;
            border-bottom: 1px solid var(--gray-soft);
            transition: all 0.2s ease;
        }
        .ticket-item:hover { background: var(--light); }
        .ticket-item.unread {
            background: rgba(220,53,69,0.02);
            border-left: 3px solid var(--primary);
        }
        .ticket-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }
        .ticket-number { font-weight: 700; font-size: 0.85rem; color: var(--dark); }
        .ticket-subject { font-size: 1rem; font-weight: 500; color: var(--dark); margin-bottom: 0.5rem; }
        .ticket-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.7rem;
            color: var(--gray-light);
            margin-bottom: 1rem;
        }
        .ticket-meta i { margin-right: 0.25rem; }
        .ticket-actions { display: flex; gap: 0.75rem; }

        /* Message Styles */
        .messages-container { display: flex; flex-direction: column; gap: 1rem; }
        .message-item { display: flex; gap: 1rem; }
        .message-item.admin .message-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
        .message-item.user .message-avatar { background: var(--gray); }
        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1rem;
            flex-shrink: 0;
        }
        .message-content {
            flex: 1;
            background: var(--light);
            border-radius: 16px;
            padding: 0.75rem 1rem;
        }
        .message-item.admin .message-content { background: rgba(220,53,69,0.05); }
        .message-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
        }
        .message-sender { font-weight: 600; font-size: 0.85rem; color: var(--dark); }
        .admin-badge { font-size: 0.6rem; background: var(--primary); color: white; padding: 0.15rem 0.5rem; border-radius: 20px; }
        .message-time { font-size: 0.65rem; color: var(--gray-light); }
        .message-text {
            font-size: 0.85rem;
            color: var(--gray);
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .reply-form { display: flex; flex-direction: column; gap: 0.75rem; }
        .reply-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }

        /* Responsive */
        @media (max-width: 1200px) {
            .profile-main { grid-template-columns: 1fr 320px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 992px) {
            .profile-main { grid-template-columns: 1fr; }
            .profile-right { order: -1; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .page-wrapper.has-sidebar .main-content {
                margin-left: 0;
                padding: var(--space-lg);
            }
            .page-wrapper.has-sidebar .site-footer {
                margin-left: 0;
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .profile-container { padding: 0.75rem; }
            .profile-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .profile-actions { width: 100%; }
            .btn-action { flex: 1; justify-content: center; }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            .stat-card { padding: 0.75rem; }
            .stat-icon { width: 40px; height: 40px; font-size: 1.25rem; }
            .stat-value { font-size: 1rem; }
            .card-header { padding: 1rem; }
            .card-body { padding: 1rem; }
            .main-content { padding: var(--space-lg); }
            .page-wrapper:not(.has-sidebar) .main-content { padding: 0; }
            .redirect-buttons { flex-direction: column; }
            .redirect-card { padding: 1.5rem; }
            .redirect-icon { width: 60px; height: 60px; }
            .redirect-icon i { font-size: 1.75rem; }
            .amount-buttons { flex-direction: column; }
            .history-details { flex-direction: column; align-items: flex-start; }
            .ticket-header { flex-direction: column; align-items: flex-start; }
            .ticket-actions { width: 100%; }
            .ticket-actions .btn-outline-full { flex: 1; justify-content: center; }
            .reply-actions { flex-direction: column; }
            .reply-actions .btn-submit,
            .reply-actions .btn-outline-full { width: 100%; justify-content: center; }
            .message-item { flex-direction: column; align-items: flex-start; }
            .message-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
            .pin-actions { flex-direction: column; }
            .modal-actions { flex-direction: column; }
            .social-item { flex-wrap: wrap; }
            .btn-unlink { width: 100%; justify-content: center; }
            .info-grid { grid-template-columns: 1fr; gap: 0.75rem; }
            .profile-avatar { flex-direction: column; text-align: center; }
            .avatar-large { width: 80px; height: 80px; font-size: 2rem; }
            .profile-details { text-align: center; }
        }

        @media (max-width: 480px) {
            .stats-grid { grid-template-columns: 1fr; }
            .profile-name { font-size: 1.5rem; }
            .btn-action span { display: none; }
            .btn-action i { margin: 0; font-size: 1.2rem; }
            .btn-action { padding: 0.6rem; }
            .mobile-nav-panel { width: 85%; }
            .mobile-nav-header { padding: 1rem; }
            .mobile-user-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
            .mobile-user-name { font-size: 0.9rem; }
            .mobile-user-balance { font-size: 0.75rem; }
            .mobile-nav-body { padding: 0.75rem; }
            .mobile-nav-item { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
            .menu-group-title { font-size: 0.65rem; }
            .payment-details { font-size: 0.8rem; }
            .calculation-result { font-size: 1.25rem; }
            .btn-amount { padding: 0.6rem 0.25rem; }
            .btn-amount i { font-size: 1rem; }
            .btn-amount .amount-value { font-size: 0.75rem; }
            .commission-card { padding: 0.75rem; }
            .commission-row { font-size: 0.8rem; }
        }
        /* Отступ для контента, чтобы не перекрывался нижней навигацией - ТОЛЬКО НА МОБИЛЬНЫХ */
@media (max-width: 1024px) {
    body.has-bottom-nav .page-wrapper {
        padding-bottom: calc(70px + var(--safe-area-bottom));
    }
}

/* Для десктопа отступ не нужен */
@media (min-width: 1025px) {
    body.has-bottom-nav .page-wrapper {
        padding-bottom: 0;
    }
}
/* ===== INDEX PAGE SPECIFIC STYLES ===== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
}

.btn-hero {
    padding: 0.5rem 1.25rem;
    font-size: clamp(0.8rem, 3.5vw, 1rem);
}

@media (max-width: 768px) {
    .btn-hero {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
}

.stat-icon-circle {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-circle i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .stat-icon-circle {
        width: 35px;
        height: 35px;
    }
    .stat-icon-circle i {
        font-size: 1rem;
    }
}

.stat-number {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

/* Realtime Card */
.realtime-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 32px;
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 0.25rem;
    }
}

/* Step Cards */
.step-card {
    border-radius: 24px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .service-icon {
        width: 40px;
        height: 40px;
    }
    .service-icon i {
        font-size: 1.2rem;
    }
}

.service-title {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-card {
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

/* Advantages Accordion */
.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advantage-item {
    transition: all 0.2s ease;
}

.advantage-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .advantage-icon {
        width: 38px;
        height: 38px;
    }
    .advantage-icon i {
        font-size: 1rem;
    }
}

.advantage-body {
    transition: all 0.3s ease;
}

/* Stats Card */
.stats-card {
    border-radius: 20px;
    overflow: hidden;
}

.stats-card-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
}

.stats-number {
    font-size: clamp(1.25rem, 5vw, 2rem);
}

/* Payments Card */
.payments-card {
    border-radius: 20px;
    overflow: hidden;
}

.payments-table th,
.payments-table td {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .payments-table th,
    .payments-table td {
        font-size: 0.7rem;
    }
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.user-avatar-1 {
    background: rgba(255, 193, 7, 0.1);
}

.user-avatar-1 .user-avatar-letter {
    color: #856404;
}

.user-avatar-2 {
    background: rgba(108, 117, 125, 0.1);
}

.user-avatar-2 .user-avatar-letter {
    color: #5a6268;
}

.user-avatar-3 {
    background: rgba(220, 53, 69, 0.1);
}

.user-avatar-3 .user-avatar-letter {
    color: white;
}

.user-avatar-letter {
    font-weight: 700;
    font-size: 0.8rem;
}

/* Telegram Card */
.telegram-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
}

.telegram-title {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
}

.btn-telegram {
    padding: 0.6rem 1.5rem;
}

@media (max-width: 768px) {
    .btn-telegram {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.telegram-stats {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .telegram-stats {
        font-size: 0.7rem;
    }
    .telegram-stats .fs-5 {
        font-size: 1rem !important;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.cta-title {
    font-size: clamp(1.25rem, 6vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-cta {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Мобильные улучшения */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .badge {
        font-size: 0.65rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .service-card .card-body {
        padding: 0.75rem !important;
    }
    
    .bg-opacity-10 {
        background-color: rgba(220, 53, 69, 0.1);
    }
    
    .rounded-circle.p-2 {
        padding: 0.5rem !important;
    }
    
    .fa-2x {
        font-size: 1.25rem !important;
    }
    
    .medal {
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}
/* ============================================
   ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ PAGES
   ============================================ */

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .badge {
    font-weight: 500;
}

.hero-title {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
}

/* ===== АДАПТИВНЫЕ КАРТОЧКИ ===== */
.card {
    border-radius: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ===== АДАПТИВНАЯ СЕТКА ===== */
.row-cols-mobile-2 > * {
    flex: 0 0 auto;
    width: 50%;
}

@media (max-width: 576px) {
    .row-cols-mobile-2 {
        display: flex;
        flex-wrap: wrap;
    }
}

/* ===== ФОРМЫ (signin, signup, recovery) ===== */
.auth-card {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px !important;
}

.auth-card .card-header {
    background: white;
    border-bottom: 1px solid var(--gray-soft);
    padding: 1.5rem;
}

.auth-card .card-header i {
    font-size: 1.5rem;
}

.auth-card .card-header h3 {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .auth-card .card-header {
        padding: 1rem;
    }
    .auth-card .card-header i {
        font-size: 1.2rem;
    }
    .auth-card .card-header h3 {
        font-size: 1rem;
    }
}

/* Социальные кнопки */
.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--gray-soft);
    border-radius: 40px;
    background: white;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .social-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ===== СТАТИСТИКА (statistics, faq, contacts) ===== */
.stat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .stat-circle {
        width: 80px;
        height: 80px;
    }
    .stat-circle .fs-3 {
        font-size: 1.2rem !important;
    }
}

/* Category Tiles */
.category-tile {
    transition: all 0.3s ease;
    background: #f8fafc !important;
    border-radius: 16px !important;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: rgba(220, 53, 69, 0.05) !important;
    border-color: #dc3545 !important;
}

.category-tile i {
    transition: transform 0.3s ease;
}

.category-tile:hover i {
    transform: scale(1.1);
}

/* FAQ Cards */
.faq-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Accordion */
.accordion-item-custom {
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--gray-soft) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem;
}

.accordion-item-custom:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.1);
}

.accordion-header-custom {
    cursor: pointer;
    transition: background 0.2s ease;
}

.accordion-header-custom:hover {
    background: rgba(220, 53, 69, 0.02);
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-body-custom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fefefe;
}

/* ===== СЕРФИНГ (serfing) ===== */
.tariff-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 50%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tariff-icon {
        width: 60px;
        height: 60px;
    }
    .tariff-icon i {
        font-size: 1.5rem !important;
    }
}

.tariff-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tariff-card.selected {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02), rgba(220, 53, 69, 0.05));
}

/* ===== ТЕЛЕГРАМ (telegram) ===== */
.telegram-channel-card {
    transition: all 0.3s ease;
    border-radius: 20px !important;
}

.telegram-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ===== СТРАНИЦА ОПЛАТЫ (showcase_pay, success, fail) ===== */
.payment-redirect-card {
    max-width: 500px;
    margin: 2rem auto;
}

.payment-details {
    background: var(--light);
    border-radius: 16px;
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-soft);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.detail-value {
    font-weight: 600;
    color: var(--dark);
}

.detail-value.success {
    color: var(--success);
}

.spinner-large {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

/* ===== 404 СТРАНИЦА ===== */
.error-404 {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(220, 53, 69, 0.3); }
    50% { text-shadow: 0 0 30px rgba(220, 53, 69, 0.6); }
}

/* ===== СТРАНИЦА О ПРОЕКТЕ (about) ===== */
.principle-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.principle-icon i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .principle-icon {
        width: 38px;
        height: 38px;
    }
}

/* ===== СТРАНИЦА НОВОСТЕЙ (news) ===== */
.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15) !important;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .news-image {
        height: 160px;
    }
}

.news-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.news-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* ===== УНИВЕРСАЛЬНЫЕ УТИЛИТЫ ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition: all 0.3s ease;
}

.object-fit-cover {
    object-fit: cover;
}

/* ===== МОБИЛЬНЫЕ УЛУЧШЕНИЯ ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    .display-5 {
        font-size: 1.5rem !important;
    }
    .display-6 {
        font-size: 1.25rem !important;
    }
    .lead {
        font-size: 0.9rem !important;
    }
    .btn-lg {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .d-mobile-none {
        display: none !important;
    }
    .text-mobile-center {
        text-align: center !important;
    }
    .w-mobile-100 {
        width: 100% !important;
    }
    .gap-mobile-1 {
        gap: 0.25rem !important;
    }
}
/* ===== USER ACCOUNT PAGE EXTRA STYLES ===== */

/* Reviews Container */
.reviews-container {
    width: 100%;
}

/* Rating Card Body */
.rating-card-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .rating-card-body {
        padding: 1rem;
    }
}

/* Rating Info */
.rating-info h5 {
    font-size: 1rem;
}

.rating-info p {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Reviews List - для страницы отзывов */
.review-item {
    border-bottom: 1px solid var(--gray-soft);
    padding: 1rem;
    transition: background 0.2s ease;
}

.review-item:hover {
    background: var(--light);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-task {
    font-size: 0.7rem;
    color: var(--gray);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-rating i {
    font-size: 0.8rem;
}

.review-date {
    font-size: 0.7rem;
    color: var(--gray-light);
}

.review-comment {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-soft);
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .reviewer-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .reviewer-name {
        font-size: 0.85rem;
    }
    .review-comment {
        font-size: 0.8rem;
    }
}

/* Actions List (используется в user_account) */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-soft);
}

.action-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.action-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary);
}

.action-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.action-icon.primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.action-icon.secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.action-content {
    flex: 1;
}

.action-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

.action-time {
    font-size: 0.7rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .action-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .action-text {
        font-size: 0.8rem;
    }
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item.unread {
    background: rgba(220, 53, 69, 0.03);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notification-icon.primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.notification-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary);
}

.notification-icon.secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.notification-message {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.65rem;
    color: var(--gray-light);
    margin-top: 0.25rem;
}

.notification-new {
    font-size: 0.6rem;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .notification-item {
        padding: 0.5rem;
    }
    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .notification-title {
        font-size: 0.8rem;
    }
    .notification-message {
        font-size: 0.7rem;
    }
}

/* User Avatar for payments table (используется в statistics и my_purchases) */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.user-avatar-1 {
    background: rgba(255, 193, 7, 0.1);
}

.user-avatar-1 .user-avatar-letter {
    color: #856404;
}

.user-avatar-2 {
    background: rgba(108, 117, 125, 0.1);
}

.user-avatar-2 .user-avatar-letter {
    color: #5a6268;
}

.user-avatar-3 {
    background: rgba(220, 53, 69, 0.1);
}

.user-avatar-3 .user-avatar-letter {
    color: white;
}

.user-avatar-letter {
    font-weight: 700;
    font-size: 0.8rem;
}

/* Chart Container Fixes */
.chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

@media (max-width: 768px) {
    .chart-container {
        height: 300px !important;
    }
}

/* Profile Card Footer Fix */
.profile-card .card-footer {
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .profile-main {
        grid-template-columns: 1fr;
    }
    .profile-right {
        order: -1;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .profile-card .card-body {
        padding: 1rem;
    }
    .profile-card .card-header {
        padding: 0.75rem 1rem;
    }
    .profile-card .card-footer {
        padding: 0.5rem 1rem;
    }
    .stats-grid {
        gap: 0.75rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
}
/* ===== PROFILE TABS (для user_account) ===== */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray-soft);
    padding-bottom: 0;
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 40px;
    background: white;
    border: 1px solid var(--gray-soft);
    color: var(--gray);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-tab i {
    font-size: 0.9rem;
}

.profile-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.profile-tab.active i {
    color: white;
}

.profile-tab .badge {
    background: rgba(0,0,0,0.1);
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.profile-tab.active .badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

@media (max-width: 768px) {
    .profile-tabs {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .profile-tab {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    .profile-tab i {
        font-size: 0.8rem;
    }
}
/* ===== BONUS PAGE STYLES ===== */

/* Bonus Wheel */
.bonus-wheel {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.bonus-amounts {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bonus-segment {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bonus-segment:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #fff, #f8f9fa);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bonus-segment.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

.bonus-segment.highlight .bonus-amount,
.bonus-segment.highlight .bonus-multiplier {
    color: white;
}

.bonus-amount {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
    display: block;
}

.bonus-multiplier {
    font-size: 0.7rem;
    color: var(--gray);
    display: block;
    margin-top: 0.25rem;
}

.bonus-pointer {
    text-align: center;
    margin-top: -0.5rem;
    font-size: 2rem;
    color: var(--primary);
    animation: bonus-bounce 1s infinite;
}

@keyframes bonus-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Timer Circle */
.timer-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light), rgba(220,53,69,0.05));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.timer-label {
    font-size: 0.7rem;
    color: var(--gray);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 20px;
}

.countdown-circle {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--gray);
}

.countdown-separator {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-light);
}

/* Streak Circle */
.streak-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.streak-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.streak-label {
    font-size: 0.7rem;
}

.streak-empty {
    text-align: center;
    padding: 1rem;
}

/* Bonus Calendar */
.bonus-calendar {
    overflow-x: auto;
}

.calendar-week {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    min-width: 500px;
}

.calendar-day {
    background: var(--light);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    flex: 1;
    transition: all 0.2s ease;
}

.calendar-day.has-bonus {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.calendar-day.today {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.calendar-day-name {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0.25rem 0;
}

.calendar-day-bonus {
    font-size: 0.65rem;
}

/* Achievements */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.achievement-item.unlocked {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.achievement-item.locked {
    opacity: 0.7;
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-desc {
    font-size: 0.7rem;
    color: var(--gray);
}

.achievement-reward {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.achievement-progress {
    margin-top: 0.5rem;
}

.achievement-progress .progress {
    height: 4px;
}

/* Paid Spin Section */
.paid-spin-section {
    margin-top: 1rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .countdown-circle {
        min-width: 60px;
        padding: 0.75rem;
    }
    .countdown-value {
        font-size: 1.25rem;
    }
    .bonus-segment {
        min-width: 55px;
        padding: 0.5rem;
    }
    .bonus-amount {
        font-size: 0.7rem;
    }
    .bonus-multiplier {
        font-size: 0.6rem;
    }
    .calendar-week {
        gap: 0.25rem;
    }
    .calendar-day {
        padding: 0.5rem;
    }
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    .timer-value {
        font-size: 2rem;
    }
    .streak-circle {
        width: 80px;
        height: 80px;
    }
    .streak-number {
        font-size: 1.5rem;
    }
}
/* ===== BUTTON EXPAND (для my_stats) ===== */
.btn-expand {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-expand:hover {
    background: var(--light);
    color: var(--primary);
}

/* ===== CHART CONTAINER SMALL ===== */
.chart-container-sm {
    position: relative;
    width: 100%;
    height: 150px;
}

/* ===== COMMISSION BADGE (для insert) ===== */
.commission-badge {
    display: inline-block;
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.commission-badge.zero {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* ===== PAYMENT CARD HOVER ===== */
.payment-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ===== FAQ LIST STYLES ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--gray-soft);
    transition: all 0.2s ease;
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--dark);
}

.faq-question i:first-child {
    color: var(--primary);
}

.faq-answer {
    padding: 0 0 0.75rem 1.5rem;
    display: none;
}

/* ===== Адаптация для мобильных ===== */
@media (max-width: 768px) {
    .btn-group .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    .commission-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* ============================================
   ДОБАВЛЕННЫЕ СТИЛИ ДЛЯ БАННЕРОВ, САЙТОВ, TELEGRAM И Т.Д.
   ============================================ */
   
/* Payment Method (для страниц оплаты) */
.payment-method {
    transition: all 0.2s ease;
}
.payment-method .btn-check:checked + .btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

/* Tariff List (для серфинга) */
.tariff-list .tariff-item {
    cursor: pointer;
}
.tariff-list .tariff-card.selected {
    border-color: #dc3545 !important;
    background: linear-gradient(135deg, rgba(220,53,69,0.02), rgba(220,53,69,0.05)) !important;
}

/* Task Details Panel */
.task-details-panel {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Telegram Preview */
.telegram-preview {
    background: #f0f2f5;
    border-radius: 12px;
    padding: 15px;
    min-height: 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.telegram-preview strong { font-weight: 700; }
.telegram-preview em { font-style: italic; }
.telegram-preview u { text-decoration: underline; }
.telegram-preview del { text-decoration: line-through; }
.telegram-preview a { color: #0d6efd; text-decoration: none; }
.telegram-preview a:hover { text-decoration: underline; }
.telegram-preview code { background: #e9ecef; padding: 2px 5px; border-radius: 4px; font-family: monospace; }
.telegram-preview pre { background: #e9ecef; padding: 10px; border-radius: 8px; overflow-x: auto; }
.telegram-preview .spoiler { background: #2c3e50; color: #2c3e50; border-radius: 4px; padding: 2px 5px; cursor: pointer; }
.telegram-preview .spoiler:hover { color: white; }

/* Upload Area (для Telegram) */
.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-area:hover {
    border-color: var(--primary) !important;
    background: rgba(220, 53, 69, 0.05) !important;
}
.upload-area .upload-content {
    cursor: pointer;
}

/* Recommendations Grid (для stats) */
.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light);
}
.recommendation-item.warning {
    border-left: 4px solid #ffc107;
}
.recommendation-item.info {
    border-left: 4px solid #0dcaf0;
}
.recommendation-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Forecast Box (для stats) */
.forecast-box {
    background: var(--light);
    border-radius: 16px;
    padding: 1rem;
}
.forecast-title {
    font-weight: bold;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forecast-quality {
    font-size: 0.7rem;
    font-weight: normal;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.forecast-quality.success { background: rgba(16,185,129,0.1); color: #10b981; }
.forecast-quality.warning { background: rgba(255,193,7,0.1); color: #ffc107; }
.forecast-quality.info { background: rgba(13,202,240,0.1); color: #0dcaf0; }
.forecast-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.forecast-label { color: var(--gray); }
.forecast-value { font-weight: 500; }

/* Best Creative Box */
.best-creative-box {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.best-creative-img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.legend-color.views-color { background: #0d6efd; }
.legend-color.clicks-color { background: #dc3545; }

/* Hours/Days Grid для таргетинга */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.hour-checkbox, .day-checkbox, .category-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}
.hour-checkbox:hover, .day-checkbox:hover, .category-checkbox:hover {
    background: rgba(220,53,69,0.05);
}
@media (max-width: 768px) {
    .hours-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Progress bar large/small */
.progress-bar-large {
    background: var(--gray-soft);
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}
.progress-fill {
    background: #198754;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}
.progress-bar-small {
    background: var(--gray-soft);
    border-radius: 6px;
    overflow: hidden;
    height: 6px;
}
.progress-fill-small {
    background: #ffc107;
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Ранее добавленные стили для анимации предпросмотра */
@keyframes preview-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes preview-float {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Info Card для страниц */
.info-card {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.info-card-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Campaign Icon */
.campaign-icon {
    width: 40px;
    height: 40px;
    background: rgba(220,53,69,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Creative Preview */
.creative-preview {
    max-width: 60px;
    max-height: 40px;
    border-radius: 6px;
}

/* Site Icon */
.site-icon {
    width: 48px;
    height: 48px;
}

/* Price in preview */
.preview-price {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Rating Circle */
.rating-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), rgba(220,53,69,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.rating-max {
    font-size: 1rem;
    color: var(--gray);
}
.rating-stars-display {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}
.rating-count {
    font-size: 0.8rem;
    color: var(--gray);
}
/* ============================================
   АДМИН ПАНЕЛЬ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   (расширение существующих классов из user_menu)
   ============================================ */

/* Сайдбар админки - наследует .sidebar из user_menu */
.admin-sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: white;
    border-right: 1px solid #e2e8f0;
    z-index: 1020;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

/* Навигация в админке - наследует .nav-link из user_menu */
.admin-sidebar .nav-link {
    color: #0f172a;
    border-radius: 12px;
    transition: all 0.2s;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.admin-sidebar .nav-link i {
    width: 20px;
    color: #dc3545;
}

.admin-sidebar .nav-link.active {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.admin-sidebar .nav-link .badge {
    margin-left: auto;
}

/* Профиль админа в сайдбаре */
.admin-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.admin-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.admin-info p {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

/* Кнопка-бургер для мобильных */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    z-index: 1040;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-sidebar-toggle:hover {
    transform: scale(1.05);
}

/* Основной контент админки */
.admin-main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    min-height: 100vh;
    background: #f8fafc;
    transition: margin-left 0.3s ease;
}

/* Адаптивность админки */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .admin-sidebar-toggle {
        display: flex;
    }
    
    .admin-main-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-main-content {
        padding: 15px;
    }
    
    .admin-sidebar-toggle {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   СТРАНИЦА НАСТРОЕК (settings)
   ============================================ */

.settings-container {
    max-width: 1400px;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.settings-subtitle {
    color: #64748b;
    font-size: 0.85rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Вкладки настроек */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.settings-tab i {
    font-size: 0.9rem;
}

.settings-tab:hover {
    background: #f8fafc;
    color: #dc3545;
}

.settings-tab.active {
    background: #dc3545;
    color: white;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* Карточки настроек */
.settings-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.settings-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.settings-card .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
    flex: 1;
}

.settings-card .card-body {
    padding: 1.5rem;
}

/* Бейджи */
.badge-info {
    background: #e8f4fd;
    color: #0c5460;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Иконки платежных систем */
.ps-icon {
    height: 20px;
    vertical-align: middle;
}

.ps-icon-lg {
    height: 28px;
}

/* Секции в формах */
.form-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Алерт info */
.alert-info {
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #0c5460;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info a {
    color: #0c5460;
    text-decoration: underline;
}

/* Кнопки действий */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Полноширинная форма */
.form-group.full-width {
    grid-column: span 2;
}

/* Мобильная адаптация настроек */
@media (max-width: 992px) {
    .settings-tabs {
        border-radius: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }
    
    .settings-tab {
        white-space: nowrap;
    }
    
    .settings-card .card-body {
        padding: 1rem;
    }
    
    .settings-card .card-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-title {
        font-size: 1.25rem;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .settings-tab span {
        display: none;
    }
    
    .settings-tab {
        padding: 0.5rem 0.9rem;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}
/* Кнопка админ-меню СЛЕВА */
.admin-menu-float-btn {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-menu-float-btn:hover {
    transform: scale(1.05);
}

.admin-menu-float-btn .admin-menu-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #1e293b;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .admin-menu-float-btn {
        bottom: 90px;
    }
}