        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #3a86ff 0%, #9c88ff 100%);
            border-radius: 4px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2a76ef 0%, #8c78ef 100%);
        }
        
        ::-webkit-scrollbar-corner {
            background: var(--bg-tertiary);
        }
        
        /* Для Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: #3a86ff var(--bg-tertiary);
        }
        
        /* Плавная прокрутка для всего сайта */
        html {
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: #3a86ff var(--bg-tertiary);
        }
        
        /* Скроллбар для поисковых подсказок */
        .search-suggestions::-webkit-scrollbar {
            width: 6px;
        }
        
        .search-suggestions::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }
        
        .search-suggestions::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #ffd166 0%, #ffb142 100%);
            border-radius: 3px;
        }
        
        /* CSS переменные для консистентности */
        :root {
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        /* Стили для главной страницы */
        .page-header {
            margin-bottom: 40px;
        }
        
        .page-header h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text-primary);
        }
        
        .page-header p {
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1.5;
        }
        
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .app-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            text-decoration: none;
            color: inherit;
            transition: all 0.2s ease;
            display: block;
            height: 100%;
        }
        
        .app-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .app-icon {
            position: relative;
            width: 60px;
            height: 60px;
            background: var(--bg-tertiary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            overflow: visible;
        }
        
        .app-icon img {
            width: 32px;
            height: 32px;
            object-fit: contain;
        }
        
        .app-icon i {
            font-size: 24px;
            color: var(--accent);
        }
        
        .app-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--success);
            color: white;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 12px;
            text-transform: uppercase;
        }
        
        .app-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-primary);
        }
        
        .app-version {
            font-size: 13px;
            color: var(--accent);
            margin-bottom: 10px;
        }
        
        .app-description {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .app-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-tertiary);
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }
        
        .show-all-btn {
            display: inline-block;
            padding: 12px 30px;
            background: var(--accent);
            color: white;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
        }
        
        .show-all-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }
        
        /* Стили для поиска (исправленные) */
        .search-container {
            position: relative !important;
            width: 300px;
        }

        .search-input {
            width: 100%;
            padding: 10px 16px 10px 42px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
            transition: var(--transition);
        }

        .search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            pointer-events: none;
        }

        /* Подсказки поиска */
        .search-suggestions {
            position: absolute;
            top: 100% !important;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-top: 5px;
            display: none;
            z-index: 1000;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .search-suggestions a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            text-decoration: none;
            color: var(--text-primary);
            transition: background 0.2s;
            border-bottom: 1px solid var(--border);
        }

        .search-suggestions a:last-child {
            border-bottom: none;
        }

        .search-suggestions a:hover {
            background: var(--bg-tertiary);
        }
        
        /* Стили для выпадающего меню - как в category.php */
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        
        .dropdown-icon {
            font-size: 12px;
            transition: transform 0.3s ease;
        }
        
        .dropdown:hover .dropdown-icon {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            min-width: 250px;
            max-width: 300px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
            margin-top: 5px;
        }
        
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-parent {
            position: relative;
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 10px 14px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s ease;
            border-bottom: 1px solid var(--border);
        }
        
        .dropdown-item:last-child {
            border-bottom: none;
        }
        
        .parent-item-content,
        .child-item-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        
        .category-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }
        
        .child-item .category-name {
            margin-left: 8px;
        }
        
        .category-info-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        
        .submenu-icon {
            font-size: 10px;
            color: var(--text-tertiary);
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }
        
        .dropdown-parent:hover .submenu-icon {
            transform: rotate(90deg);
            color: var(--accent);
        }
        
        /* Счетчики только для дочерних категорий */
        .category-count {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            font-size: 10px;
            padding: 1px 5px;
            border-radius: 8px;
            font-weight: 600;
            min-width: 20px;
            text-align: center;
            line-height: 1.2;
            margin-left: 8px;
            flex-shrink: 0;
            display: inline-block;
        }
        
        /* Активная категория в меню */
        .dropdown-item.active {
            background: var(--bg-tertiary);
            color: var(--accent);
            border-left: 3px solid var(--accent);
        }
        
        .dropdown-item:hover {
            background: var(--bg-tertiary);
            color: var(--accent);
        }
        
        .dropdown-submenu {
            position: absolute;
            top: 0;
            left: 100%;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            min-width: 220px;
            max-width: 280px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .dropdown-parent:hover .dropdown-submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        
        /* Анимации */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* ОДИНАКОВЫЕ hover-эффекты для всех карточек */
        .app-card-large:hover,
        .app-card:hover {
            border-color: var(--accent) !important;
            transform: translateY(-4px) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
        }
        
        /* Hover эффект для кнопки "Загрузить ещё" */
        #load-more-btn:hover {
            background: var(--accent-hover) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4) !important;
        }
        
        /* Адаптивность */
        @media (max-width: 1024px) {
            .apps-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .new-apps-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            .search-container {
                width: 250px;
            }
            
            .dropdown-submenu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                border-top: 1px solid var(--border);
                display: none;
            }
            
            .dropdown-parent.active .dropdown-submenu {
                display: block;
            }
            
            .parent-item {
                cursor: pointer;
            }
            
            .child-item {
                padding-left: 30px;
            }
        }
        
        @media (max-width: 768px) {
            .apps-grid {
                grid-template-columns: 1fr;
            }
            
            .new-apps-grid {
                grid-template-columns: 1fr !important;
            }
            
            .hero-section h1 {
                font-size: 32px !important;
            }
            
            .hero-section p {
                font-size: 16px !important;
            }
            
            .header-content {
                flex-wrap: wrap;
                gap: 15px;
            }
            
            .search-container {
                order: 3;
                width: 100%;
            }
            
            .main-nav {
                order: 2;
            }
            
            .category-count {
                font-size: 10px;
                padding: 1px 4px;
                min-width: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .hero-section {
                padding: 40px 20px !important;
            }
            
            .hero-section h1 {
                font-size: 28px !important;
            }
            
            .app-card {
                padding: 15px;
            }
            
            .app-title {
                font-size: 16px;
            }
            
            .app-description {
                font-size: 13px;
            }
        }