/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ (Bubs Shop Style) ===== */
:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== ФОНОВЫЕ ЭФФЕКТЫ ===== */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-circle-1 {
    top: -10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    opacity: 0.12;
}

.bg-circle-2 {
    top: 30%;
    right: 10%;
    width: 280px;
    height: 280px;
    background: var(--accent-purple);
    opacity: 0.12;
}

.bg-circle-3 {
    bottom: 10%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: var(--accent-pink);
    opacity: 0.08;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.navbar-logo span {
    font-weight: 600;
    font-size: 17px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-actions {
    display: flex;
    gap: 8px;
}

.nav-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* ===== ГЛАВНЫЙ КОНТЕНТ ===== */
.main-content {
    position: relative;
    z-index: 10;
    padding: 16px 16px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== БАННЕР СЛАЙДЕР ===== */
.banner-slider {
    position: relative;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.banner-slide.sale {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
}

.banner-slide.new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
}

.banner-content {
    text-align: center;
}

.banner-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.banner-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.2);
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

/* ===== HERO ===== */
.hero-section {
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #bfdbfe, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== СЕТКА ИГР ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* ===== КАРТОЧКА ИГРЫ ===== */
.game-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease backwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.15s; }
.game-card:nth-child(3) { animation-delay: 0.2s; }

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.game-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.game-card:hover .game-image::after {
    transform: translateX(100%);
}

.game-footer {
    position: relative;
    z-index: 2;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: #93c5fd;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.game-card:hover .arrow-icon {
    transform: translateX(4px);
}

.game-footer::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width 0.4s ease;
}

.game-card:hover .game-footer::after {
    width: 60%;
}

/* ===== КОНТАКТЫ ===== */
.contact-section {
    margin-top: 32px;
    text-align: center;
}

.contact-section h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-section > p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.contact-btn:hover::before {
    transform: translateX(100%);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-btn.full-width {
    grid-column: 1 / -1;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-icon.bot {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.contact-icon.reviews {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.contact-icon.support {
    background: linear-gradient(135deg, #10b981, #059669);
}

.contact-info {
    text-align: left;
    min-width: 0;
}

.contact-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-subtitle {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-copyright::before,
.footer-copyright::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== КАТАЛОГ ===== */
.catalog-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.catalog-content {
    position: relative;
    z-index: 10;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.breadcrumb-item.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.breadcrumb-item svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== КАТЕГОРИИ ===== */
.categories-section {
    margin-bottom: 24px;
}

.categories-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.category-image-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-footer {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-name {
    font-size: 13px;
    font-weight: 600;
}

.category-arrow {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(3px);
}

/* ===== ТОВАРЫ ===== */
.products-section {
    margin-bottom: 20px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.products-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.products-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-header-left .product-count,
.products-count {
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 8px;
}

.view-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.view-toggle-btn.active {
    background: var(--accent-blue);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease backwards;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.product-card.expanded {
    border-color: var(--accent-blue);
}

.product-card.highlighted {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse-highlight 1s ease-in-out 3;
}

@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.5); }
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Lazy Loading стили */
.product-image img.lazy-image {
    opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.product-image img.lazy-image.loaded {
    opacity: 1;
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-image .placeholder-icon {
    font-size: 40px;
    opacity: 0.25;
}

.product-price-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.product-header {
    padding: 10px 12px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-expand-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.product-description-block {
    padding: 0 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-description-block p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0 0;
}

.product-footer {
    padding: 6px 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
}

.product-price-currency {
    font-size: 12px;
}

.product-buy-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

/* ===== ПОИСК ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 16px;
}

.search-overlay.active {
    display: flex;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.close-search {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    align-content: start;
}

.search-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
}

.search-item-image {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.search-item-desc {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item-price {
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
}

.search-item-category {
    color: var(--text-secondary);
    font-size: 11px;
}

.search-highlight {
    background: rgba(59, 130, 246, 0.25);
    padding: 0 2px;
    border-radius: 2px;
}

.search-suggestions {
    padding: 14px;
}

.search-suggestions-title {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.search-tag {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
}

/* ===== МОДАЛЬНОЕ ОКНО ПОКУПКИ ===== */
.purchase-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.purchase-modal-overlay.active {
    display: flex;
}

.purchase-modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.purchase-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-product-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

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

.purchase-title-section {
    flex: 1;
}

.purchase-title {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.purchase-product-name {
    font-size: 15px;
    font-weight: 600;
}

.purchase-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-close:hover {
    background: rgba(239, 68, 68, 0.25);
}

.purchase-content {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

.purchase-price-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.price-chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.price-header.collapsed .price-chevron {
    transform: rotate(-90deg);
}

.price-details {
    padding: 0 14px 14px;
}

.product-description-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.price-value {
    font-weight: 700;
    font-size: 16px;
    color: #10b981;
}

.purchase-form {
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.form-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea::placeholder {
    color: var(--text-secondary);
}

.form-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.purchase-actions {
    display: flex;
    gap: 10px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-continue {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-blue);
}

.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.payment-icon.stars {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.payment-icon.sbp {
    background: linear-gradient(135deg, #10b981, #059669);
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.payment-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-arrow {
    color: var(--text-secondary);
}

/* ===== ШАГ 2: ВЫБОР ОПЛАТЫ ===== */
.user-info-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.info-box-header svg {
    color: var(--accent-green);
}

.info-box-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
}

.info-box-content span {
    font-size: 14px;
    font-weight: 500;
}

.btn-edit {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
}

.payment-section {
    margin-bottom: 16px;
}

.payment-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.payment-option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: left;
}

.payment-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.payment-badge {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.payment-footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

/* ===== УСПЕХ ===== */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    padding: 28px 22px;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.success-close-btn {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.success-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%) scale(1.05);
}

.success-close-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.success-close-btn svg {
    width: 18px;
    height: 18px;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: white;
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.success-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.success-details {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.success-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-weight: 600;
    font-size: 13px;
}

.success-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(59, 130, 246, 0.08);
    padding: 12px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 20px;
}

.success-note svg {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.success-note span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.success-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* ===== ПРОФИЛЬ ===== */
.profile-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.profile-header h2 {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: white;
}

.profile-content {
    padding: 18px 16px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    color: white;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-uid {
    color: var(--text-secondary);
    font-size: 12px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.orders-section {
    margin-top: 20px;
}

.orders-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-code {
    font-weight: 600;
    font-size: 13px;
}

.order-status {
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.order-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.order-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 12px;
}

.orders-loading,
.orders-empty {
    text-align: center;
    padding: 36px 18px;
    color: var(--text-secondary);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-18px); }
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast-message {
    font-size: 13px;
}

/* ===== SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    aspect-ratio: 1;
    border-radius: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 50px 18px;
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 14px;
    opacity: 0.4;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== RIPPLE ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple 0.5s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ===== LIST VIEW ===== */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 12px;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.products-grid.list-view .product-image {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
}

.products-grid.list-view .product-card > div:not(.product-image) {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.products-grid.list-view .product-header {
    padding: 0;
    flex: 1;
    min-width: 100px;
}

.products-grid.list-view .product-header .product-name {
    font-size: 14px;
}

.products-grid.list-view .product-description-block {
    display: none !important;
}

.products-grid.list-view .product-footer {
    padding: 0;
    flex-shrink: 0;
    gap: 10px;
}

.products-grid.list-view .product-footer .product-price {
    font-size: 16px;
}

.products-grid.list-view .product-footer .product-buy-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 36px; }
}

@media (min-width: 1024px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
