:root {
    --bg-hero: #12141c;
    --bg-shop: #1a1a1d;
    --bg-card: #232326;
    --bg-elevated: #2a2a2e;
    --border-color: #333338;
    --text-main: #ffffff;
    --text-muted: #9a9a9f;
    --accent-purple: #8b5cf6;
    --accent-red: #ff4d4d;
    --accent-vk: #5b8fc9;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

body,
.app,
.page {
    background: var(--bg-shop) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif !important;
}

a { text-decoration: none; }

.hero-section {
    background: var(--bg-hero);
    padding: 60px 24px 90px;
    text-align: center;
    position: relative;
}

.hero-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}

.hero-online-pill {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-main);
    font-size: .95rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    fill: var(--bg-shop);
}

.servers-section {
    background: var(--bg-shop);
    padding: 40px 24px;
}

.servers-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.shop-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-top: 20px;
}

.shop-footer-bar .shop-name {
    font-weight: 700;
    font-size: 1rem;
}

.shop-footer-bar .shop-domain-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .9rem;
}

.online-progress-line {
    height: 3px;
    width: 100%;
    background: var(--accent-purple);
    border-radius: 2px;
    margin: 10px 0;
}

.online-count-text {
    color: var(--text-muted);
    font-size: .95rem;
}

.vk-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--accent-vk);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
    z-index: 50;
}

.catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 24px 0;
}

.catalog-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
}

.search-input {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 24px 0;
}

.category-tab {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab.active {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.product-card__banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: 6px 16px;
    border-radius: 999px;
    z-index: 2;
}

.cart-icon-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    z-index: 2;
}

.product-card__body {
    padding: 16px 18px 20px;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 1.15rem;
}

.price-current {
    color: var(--text-main);
    font-weight: 800;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    font-size: .95rem;
}

.chat-bubble-hint {
    position: fixed;
    bottom: 30px;
    right: 90px;
    background: var(--bg-elevated);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    z-index: 49;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-shop); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

@media (min-width: 993px) {
    .hero-section {
        padding: 90px 40px 130px;
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .catalog-header,
    .category-tabs,
    .products-grid {
        max-width: 1200px;
        margin: 0 auto;
    }

    .catalog-header {
        align-items: center;
    }

    .search-input {
        min-width: 340px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-online-pill {
        font-size: .85rem;
    }

    .catalog-header {
        flex-direction: column;
        padding: 24px 16px 0;
        gap: 16px;
    }

    .catalog-title {
        font-size: 1.9rem;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 20px 16px 0;
    }

    .category-tabs::-webkit-scrollbar { display: none; }

    .category-tab {
        white-space: nowrap;
        padding: 10px 16px !important;
        font-size: .9rem !important;
    }

    .products-grid {
        padding: 16px;
        gap: 16px;
    }

    .product-card__title {
        font-size: 1.1rem;
    }

    .vk-float-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .chat-bubble-hint {
        display: none;
    }
}
