:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(20, 20, 30, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent-cyan: #00d9ff;
    --accent-purple: #b24bf3;
    --accent-orange: #ff8c00;
    --border-radius: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.5);
    --glow-purple: 0 0 20px rgba(178, 75, 243, 0.5);
    --glow-orange: 0 0 20px rgba(255, 140, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #001a33 0%, #0a0a1a 25%, #1a0a2a 50%, #2a0a3a 75%, #1a0520 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-bottom: 80px;
}

#app {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(178, 75, 243, 0.15) 0%, transparent 50%);
}

.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.delivery-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.delivery-badge .material-symbols-outlined {
    font-size: 20px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    padding: 4px;
    border-radius: 8px;
}

.channel-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.channel-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-orange));
    border-radius: 9999px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.channel-btn:hover::before {
    opacity: 1;
}

.channel-btn:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.channel-btn .material-symbols-outlined {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px;
    border-radius: 50%;
}

/* Search Bar */
.search-container {
    padding: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    gap: 12px;
}

.search-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar .material-symbols-outlined {
    color: var(--accent-cyan);
    font-size: 22px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(178, 75, 243, 0.1) 100%);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #000000;
}

.search-bar input::placeholder {
    color: #999999;
}

.filter-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    color: white;
    border: 3px solid transparent;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glow-purple);
    transition: all 0.3s;
    position: relative;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange), var(--accent-cyan));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-orange);
}

/* Main Content */
.main-content {
    padding: 0 10px 20px;
}

.section {
    margin-bottom: 24px;
}

.section.hidden {
    display: none;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 16px;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.back-btn {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(178, 75, 243, 0.2) 100%);
    border: 3px solid rgba(0, 217, 255, 0.4);
    color: var(--accent-cyan);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.4) 0%, rgba(178, 75, 243, 0.4) 100%);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateX(-2px);
}

/* Categories Grid */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

@media (min-width: 481px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(178, 75, 243, 0.1) 50%, rgba(255, 140, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card.active {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 217, 255, 0.15);
}

.category-card.active::before {
    opacity: 1;
}

.category-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.category-card:active {
    transform: scale(0.95);
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(178, 75, 243, 0.2) 50%, rgba(255, 140, 0, 0.2) 100%);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid rgba(0, 217, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.category-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

/* Product card animation */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
.product-card:nth-child(n+9) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products List */
.products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(178, 75, 243, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(178, 75, 243, 0.1) 0%, rgba(255, 140, 0, 0.1) 50%, rgba(0, 217, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    transform: translateY(-4px) scale(1.02);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.5) 0%, rgba(40, 40, 60, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.9);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    z-index: 1;
}

.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
}

.product-volume {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.product-add-btn {
    width: 100%;
    padding: 10px;
    margin-top: auto;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.product-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.product-add-btn:hover::before {
    left: 100%;
}

.product-add-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.product-add-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Cart */
.cart-items {
    margin-bottom: 16px;
}

.cart-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(178, 75, 243, 0.2) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-brand {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-remove {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 0, 0, 0.2) 100%);
    border: none;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cart-item-remove::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
    transform: translate(-50%, -50%);
}

.cart-item-remove:hover::before {
    width: 100%;
    height: 100%;
}

.cart-item-remove:hover {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 0, 0, 0.4) 100%);
    border-color: #ff0000;
    box-shadow: var(--glow-orange);
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.cart-empty .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Cart Summary */
.cart-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(178, 75, 243, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.promo-section {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.promo-input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    color: #000000;
}

.promo-input::placeholder {
    color: #999999;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-cyan);
    transition: all 0.3s;
}

.btn-secondary:hover {
    box-shadow: var(--glow-purple);
}

.total-section {
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    padding-top: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.total-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.discount-row {
    color: var(--accent-cyan);
}

/* Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(178, 75, 243, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-id {
    font-weight: 700;
    font-size: 16px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.done {
    background: #d4edda;
    color: #155724;
}

.order-items {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-total {
    font-weight: 700;
    font-size: 18px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(178, 75, 243, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn > * {
    position: relative;
    z-index: 1;
}

.nav-btn.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(178, 75, 243, 0.2) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Цветные иконки для навигации */
.nav-btn:nth-child(1) .nav-icon {
    color: #3b82f6;
}

.nav-btn:nth-child(2) .nav-icon {
    color: #10b981;
}

.nav-btn:nth-child(3) .nav-icon {
    color: #f59e0b;
}

.nav-btn:nth-child(4) .nav-icon {
    color: #8b5cf6;
}

.nav-icon {
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* Стили для Lottie иконок в навигации */
.nav-btn.active .lottie-icon {
    filter: brightness(10) saturate(0);
}

.nav-btn:not(.active) .lottie-icon {
    filter: brightness(5) saturate(0) opacity(0.5);
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: var(--glow-orange);
}

/* Checkout Button */
.checkout-container {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, var(--bg-color) 80%, transparent);
    z-index: 98;
}

.checkout-container.hidden {
    display: none;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-orange));
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.5);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-orange), var(--accent-cyan));
    border-radius: 9999px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-checkout:hover::before {
    opacity: 1;
}

.btn-checkout::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-checkout:hover::after {
    left: 100%;
}

.btn-checkout:hover {
    box-shadow: 0 8px 40px rgba(178, 75, 243, 0.8);
    transform: translateY(-4px) scale(1.02);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-cyan);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.product-modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s;
}

.product-modal-close:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.product-modal-image {
    width: 100%;
    height: 30vh;
    max-height: 220px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.5) 0%, rgba(40, 40, 60, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.product-modal-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.product-modal-info {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-modal-category {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.product-modal-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-modal-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
    overflow-y: auto;
    max-height: 100px;
}

.product-modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    flex-shrink: 0;
}

.product-modal-add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    flex-shrink: 0;
}

.product-modal-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Все иконки белые */
.lottie-icon {
    filter: brightness(10) saturate(0);
}

.top-bar .lottie-icon,
.search-bar .lottie-icon,
.back-btn .lottie-icon {
    filter: brightness(10) saturate(0);
}

/* Скрыть скроллбар */
body {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Скрыть скроллбар в main-content */
.main-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
    display: none;
}

/* Кнопка чата в заказах */
.btn-chat {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(178, 75, 243, 0.2));
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 12px;
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-chat:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(178, 75, 243, 0.3));
    transform: translateY(-2px);
}

/* Кнопки заказа */
.order-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.order-buttons .btn-chat {
    flex: 1;
    margin-top: 0;
}

/* Кнопка отзыва */
.btn-review {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-review:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    transform: translateY(-2px);
}

.btn-review.reviewed {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
    cursor: default;
}

.btn-review:disabled {
    opacity: 0.8;
    cursor: default;
    transform: none;
}

/* Модальное окно отзыва */
.review-modal-content {
    max-width: 350px;
    padding: 20px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars .star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.4;
}

.rating-stars .star:hover {
    transform: scale(1.3);
}

#reviewComment {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    resize: none;
    margin-bottom: 15px;
}

#reviewComment::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit-review {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

/* Статус "Одобрен" */
.order-status.approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Статус "В работе" */
.order-status.processing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}


/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(30, 20, 50, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

.review-body {
    padding: 20px;
}


/* Referral Section */
.referral-container {
    padding: 15px;
}

.referral-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(178, 75, 243, 0.1));
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.referral-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.referral-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 18px;
}

.referral-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.referral-link-box input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 12px;
}

.btn-copy {
    padding: 12px 16px;
    background: var(--accent-cyan);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
}

.referral-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.referral-info {
    text-align: left;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.referral-info p {
    margin: 8px 0;
    font-size: 14px;
}

.referral-info strong {
    color: var(--accent-cyan);
}
