/* ============ БАЗОВЫЕ СТИЛИ ============ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', 'Times New Roman', 'Segoe UI', serif;
            background: #0f0f0f;
            color: #d4af37;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* ============ КОМПАКТНАЯ ШАПКА ============ */
        .restaurant-header {
            background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
            border-radius: 20px;
            padding: 10px 16px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid #d4af37;
            flex-wrap: wrap;
        }
        .restaurant-avatar {
            width: 48px;
            height: 48px;
            background: #d4af37;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
            overflow: hidden;
        }
        .restaurant-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .restaurant-info {
            flex: 1;
        }
        .restaurant-name-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
            flex-wrap: wrap;
            gap: 8px;
        }
        .restaurant-name {
            font-size: 16px;
            font-weight: bold;
            color: #d4af37;
        }
        .restaurant-meta {
            font-size: 11px;
            color: #888;
            display: flex;
            gap: 12px;
        }
        .logout-btn-header {
            background: none;
            border: 1px solid #d4af37;
            border-radius: 30px;
            padding: 5px 12px;
            cursor: pointer;
            color: #d4af37;
            font-size: 12px;
            transition: all 0.2s;
            font-family: inherit;
        }
        .logout-btn-header:hover {
            background: #d4af37;
            color: #0f0f0f;
        }

        /* ============ ВЕРХНИЙ СТИКИ-БЛОК ============ */
        .sticky-cart-block {
            position: sticky;
            top: 70px;
            z-index: 100;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #d4af37;
            border-radius: 50px;
            padding: 6px 16px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .sticky-cart-block.hidden {
            display: none;
        }
        .sticky-cart-block:active {
            transform: scale(0.98);
            background: #222;
        }
        
        .sticky-status {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        .sticky-status-icon {
            font-size: 22px;
        }
        .sticky-status-info {
            display: flex;
            flex-direction: column;
        }
        .sticky-status-label {
            font-size: 9px;
            color: #d4af37;
            opacity: 0.8;
        }
        .sticky-status-text {
            font-size: 12px;
            font-weight: 600;
            color: white;
        }
        .sticky-status-number {
            font-size: 9px;
            color: #888;
        }
        
        .sticky-cart {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #d4af37;
            padding: 5px 14px;
            border-radius: 40px;
            transition: all 0.2s;
        }
        .sticky-cart-bump {
            transform: scale(1.05);
            background: #ffd700;
        }
        .sticky-cart-icon {
            font-size: 16px;
            color: #0f0f0f;
        }
        .sticky-cart-count {
            background: #0f0f0f;
            color: #d4af37;
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 11px;
            font-weight: bold;
            min-width: 26px;
            text-align: center;
        }
        .sticky-cart-total {
            font-weight: bold;
            font-size: 12px;
            color: #0f0f0f;
        }

        /* ============ БЛОК ТЕКУЩИХ ЗАКАЗОВ (STICKY) ============ */
        .current-orders-block {
            position: sticky;
            top: 10px;
            z-index: 100;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #d4af37;
            border-radius: 20px;
            margin-bottom: 12px;
            overflow: hidden;
        }
        .current-orders-block.hidden {
            display: none;
        }

        .order-item-compact {
            border-bottom: 1px solid #2a2a2a;
        }
        .order-item-compact:last-child {
            border-bottom: none;
        }

        .order-header-compact {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .order-header-compact:hover {
            background: rgba(212, 175, 55, 0.1);
        }

        .order-status-area {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .order-icon {
            font-size: 24px;
        }

        .order-info {
            display: flex;
            flex-direction: column;
        }

        .order-status-text {
            font-size: 15px;
            font-weight: bold;
        }
        .order-status-text.status-1 { color: #007bff; }
        .order-status-text.status-2 { color: #ffc107; }
        .order-status-text.status-3 { color: #28a745; }

        .order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
}

        .order-number {
            font-size: 14px;
            font-weight: bold;
            color: #ffff;
        }

        .order-total {
            font-size: 16px;
            font-weight: bold;
            color: #d4af37;
            white-space: nowrap;
        }

        .order-expand-icon {
            font-size: 18px;
            color: #d4af37;
            margin-left: 12px;
            transition: transform 0.3s;
        }
		.order-date {
        font-size: 10px;
        color: #888;
        margin-top: 4px;
        }
		
		.order-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.15);
}
		
        .order-expand-icon.expanded {
            transform: rotate(180deg);
        }

        .order-details-compact {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            background: rgba(0, 0, 0, 0.2);
        }
        .order-details-compact.open {
            max-height: 300px;
            overflow-y: auto;
        }

        .order-items-list {
            padding: 12px 16px;
        }
		
		.order-items-container {
         padding: 12px 16px;
        }

        .order-item-detail {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #2a2a2a;
        }
        .order-item-detail:last-child {
            border-bottom: none;
        }

        .item-name-detail {
            font-size: 13px;
            color: #f5e6d3;
            flex: 2;
        }

        .item-quantity-detail {
            font-size: 13px;
            color: #d4af37;
            text-align: center;
            flex: 1;
        }

        .item-price-detail {
            font-size: 13px;
            color: #d4af37;
            text-align: right;
            flex: 1;
        }

        .no-orders-message {
            padding: 20px;
            text-align: center;
            color: #888;
            font-size: 13px;
        }
		
		/* ============ НОВЫЕ СТИЛИ ДЛЯ ЗАКАЗОВ ============ */
.order-card-new {
    background: #1e1e1e;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.2s;
    width: 100%;
}

.order-card-new.active-order-new {
    border: 2px solid #d4af37;
    background: #1f1a0f;
}

.order-card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.order-left-new {
    flex: 2;
}

.order-number-new {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 4px;
}

.order-status-new {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-date-new {
    font-size: 10px;
    color: #888;
}

.order-right-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-total-new {
    font-size: 15px;
    font-weight: bold;
    color: #d4af37;
}

.order-expand-icon-new {
    font-size: 18px;
    color: #d4af37;
    transition: transform 0.3s;
}

.order-expand-icon-new.expanded {
    transform: rotate(180deg);
}

.order-details-new {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.15);
}

.order-details-new.open {
    max-height: 300px;
    overflow-y: auto;
}

.order-items-container-new {
    padding: 12px 16px;
}

.order-item-row-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.order-item-row-new:last-child {
    border-bottom: none;
}

.order-item-name-new {
    font-size: 13px;
    color: #f5e6d3;
    flex: 2;
}

.order-item-quantity-new {
    font-size: 12px;
    color: #d4af37;
    text-align: center;
    flex: 1;
}

.order-item-price-new {
    font-size: 12px;
    color: #d4af37;
    text-align: right;
    flex: 1;
}

@media (max-width: 768px) {
    .order-card-header-new {
        padding: 12px;
    }
    .order-number-new {
        font-size: 13px;
    }
    .order-status-new {
        font-size: 11px;
    }
    .order-total-new {
        font-size: 14px;
    }
}

        /* ============ ЭКРАН АВТОРИЗАЦИИ ============ */
        .auth-screen {
            max-width: 600px;
            margin: 50px auto;
            background: #1e1e1e;
            border-radius: 24px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border: 1px solid #333;
        }
        .auth-screen h2 {
            margin-bottom: 10px;
            font-size: 28px;
            color: #f5e6d3;
        }
        .subtitle {
            color: #a0a0a0;
            margin-bottom: 30px;
            font-size: 14px;
        }
        .auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .auth-btn {
            padding: 14px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
        }
        .auth-btn.primary {
            background: #d4af37;
            color: #0f0f0f;
            font-weight: bold;
        }
        .auth-btn.telegram {
            background: #2c2c2c;
            color: #d4af37;
            border: 1px solid #d4af37;
        }
        .auth-btn.guest {
            background: #252525;
            color: #e0e0e0;
            border: 1px solid #444;
        }
        .guest-note {
            font-size: 12px;
            color: #888;
            margin-top: 20px;
        }

        /* ============ ЭКРАН ВВОДА ТЕЛЕФОНА ============ */
        .phone-screen {
            max-width: 600px;
            margin: 50px auto;
            background: #1e1e1e;
            padding: 40px;
            border-radius: 24px;
            text-align: center;
            border: 1px solid #333;
        }
        .back-btn {
            background: #2a2a2a;
            border-radius: 28px;
            border: none;
            font-size: 32px;
            cursor: pointer;
            margin-bottom: 20px;
            color: #d4af37;
            width: 45px;
            height: 45px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .phone-input {
            width: 100%;
            padding: 14px;
            font-size: 16px;
            border: 1px solid #444;
            border-radius: 12px;
            margin: 20px 0;
            text-align: center;
            background: #252525;
            color: #e0e0e0;
        }

        /* ============ НАВИГАЦИОННЫЙ ЭКРАН ============ */
        .nav-screen {
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
        }
        .user-info-nav {
            background: #1a1a1a;
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid #333;
            flex-wrap: wrap;
            gap: 12px;
        }
        .user-details {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .nav-user-avatar {
            width: 45px;
            height: 45px;
            background: #d4af37;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0f0f0f;
            font-size: 20px;
            font-weight: bold;
        }
        .nav-user-name {
            font-size: 18px;
            font-weight: bold;
            color: #f5e6d3;
        }
        .nav-user-status {
            font-size: 12px;
            color: #d4af37;
        }
        .nav-user-bonus {
            background: #252525;
            padding: 6px 14px;
            border-radius: 20px;
            color: #d4af37;
            font-weight: 700;
            font-size: 14px;
            border: 1px solid #d4af37;
        }
        .logout-btn {
            background: none;
            border: 1px solid #444;
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            color: #e0e0e0;
            font-size: 14px;
            transition: all 0.2s;
        }
        .logout-btn:hover {
            background: #d4af37;
            color: #0f0f0f;
            border-color: #d4af37;
        }

        /* Сетка навигации 2x2 */
        .nav-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }
        .nav-card {
            background: #1a1a1a;
            border-radius: 20px;
            padding: 20px 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            border: 1px solid #333;
        }
        .nav-card:hover {
            transform: translateY(-3px);
            border-color: #d4af37;
        }
        .nav-icon {
            font-size: 36px;
            margin-bottom: 10px;
        }
        .nav-title {
            font-size: 15px;
            font-weight: bold;
            color: #d4af37;
            margin-bottom: 4px;
        }
        .nav-desc {
            font-size: 10px;
            color: #888;
        }

        .profile-preview {
            background: #1a1a1a;
            border-radius: 20px;
            padding: 14px;
            border: 1px solid #333;
            cursor: pointer;
            transition: all 0.3s;
        }
        .profile-preview:hover {
            border-color: #d4af37;
        }
        .profile-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .profile-name {
            color: white;
            font-weight: 600;
            font-size: 15px;
        }
		.profile-header {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid #333;
}
        .profile-bonus {
            color: #d4af37;
            font-weight: bold;
            font-size: 13px;
        }
        .profile-phone {
            font-size: 11px;
            color: #888;
			margin-bottom: 12px;
        }

        /* ============ ЭКРАН МЕНЮ ============ */
        .menu-screen, .orders-screen, .waiter-screen, .bonus-screen {
            max-width: 100%;
    margin: 0;
    width: 100%;
			padding-bottom: 80px;
        }
        .menu-layout {
            display: flex;
            gap: 20px;
        }
        
        .categories-sidebar {
            display: none;
        }
        
        .dishes-grid {
            flex: 1;
            background: #0a0a0a;
            border-radius: 20px;
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            align-content: flex-start;
            border: 1px solid #333;
        }
        
        .category-card {
            background: #1e1e1e;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #333;
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: column;
        }
        .category-card:hover {
            transform: translateY(-5px);
            border-color: #d4af37;
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        .category-image {
            height: 140px;
            background: #252525;
            overflow: hidden;
        }
        .category-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .category-content {
            padding: 15px;
        }
        .category-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }
        .category-name {
            font-weight: 600;
            font-size: 15px;
            color: #d4af37;
            margin-bottom: 5px;
        }
        .category-desc {
            font-size: 11px;
            color: #888;
        }
        
        .dish-card {
            background: #1e1e1e;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
            border: 1px solid #333;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
        .dish-card:hover {
            transform: translateY(-5px);
            border-color: #d4af37;
        }
        .dish-image {
            height: 140px;
            background: #252525;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .dish-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .dish-info {
            padding: 12px;
            display: flex;
            flex-direction: column;
        }
        .dish-name {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 6px;
            color: #f5e6d3;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .dish-expand-icon {
            font-size: 14px;
            color: #d4af37;
            transition: transform 0.3s;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
        }
        .dish-expand-icon.expanded {
            transform: rotate(180deg);
        }
        .dish-description {
            color: #888;
            font-size: 12px;
            line-height: 1.4;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            margin: 0;
        }
        .dish-description.expanded {
            max-height: 200px;
            margin-top: 8px;
            margin-bottom: 8px;
        }
        .dish-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
            gap: 10px;
            flex-wrap: wrap;
        }
        .dish-price {
            font-size: 16px;
            font-weight: bold;
            color: #d4af37;
        }
        .add-btn {
            background: #d4af37;
            color: #0f0f0f;
            border: none;
            border-radius: 30px;
            padding: 5px 14px;
            cursor: pointer;
            font-size: 13px;
            font-weight: bold;
            transition: all 0.3s;
        }
        .add-btn:hover {
            background: #c4a030;
            transform: scale(1.02);
        }
        
        .cart-sidebar {
            width: 300px;
            background: #1a1a1a;
            border-radius: 20px;
            padding: 20px;
            height: fit-content;
            border: 1px solid #333;
        }
        .cart-sidebar h3 {
            margin-bottom: 15px;
            color: #d4af37;
            border-left: 3px solid #d4af37;
            padding-left: 12px;
        }
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #333;
            gap: 10px;
            flex-wrap: wrap;
        }
        .cart-item-name {
            font-weight: 700;
            color: #e0e0e0;
            font-size: 14px;
        }
        .cart-total {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 2px solid #333;
            display: flex;
            justify-content: space-between;
            font-weight: bold;
            font-size: 18px;
            color: #d4af37;
        }
        .user-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #1a1a1a;
            padding: 12px 20px;
            border-radius: 20px;
            margin-bottom: 20px;
            border: 1px solid #333;
            flex-wrap: wrap;
            gap: 10px;
        }
        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .user-avatar {
            width: 40px;
            height: 40px;
            background: #d4af37;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
        }
        .user-name {
            font-size: 16px;
            font-weight: bold;
            color: #f5e6d3;
        }
        .back-to-main-btn {
            background: none;
            border: 1px solid #d4af37;
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            color: #d4af37;
            font-size: 14px;
            transition: all 0.2s;
        }
        .back-to-main-btn:hover {
            background: #d4af37;
            color: #0f0f0f;
        }

        .breadcrumbs {
            margin-bottom: 15px;
            padding: 8px 12px;
            background: #1a1a1a;
            border-radius: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #888;
        }
        .breadcrumbs span {
            cursor: pointer;
            color: #d4af37;
        }
        .breadcrumbs span:hover {
            text-decoration: underline;
        }

        .order-card {
    background: #1e1e1e;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.2s;
    cursor: pointer;
	width: 100%;           /* Добавить */
    box-sizing: border-box;
}

.order-card.active-order {
    border: 2px solid #d4af37;
    background: #1f1a0f;
}
.order-card.completed-order {
    opacity: 0.85;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
}

.order-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
        .order-card.current-order {
            border: 2px solid #d4af37;
        }
        .waiter-card, .bonus-card {
            background: #1e1e1e;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            border: 1px solid #333;
        }
        .call-waiter-btn {
            background: #d4af37;
            color: #0f0f0f;
            font-weight: bold;
            border: none;
            border-radius: 50px;
            padding: 12px 28px;
            font-size: 16px;
            cursor: pointer;
        }
        .bonus-amount {
            font-size: 42px;
            font-weight: bold;
            color: #d4af37;
            margin: 15px 0;
        }
		
		
		
		/* ============ ЭКРАН ПРОФИЛЯ ============ */
.profile-screen {
    max-width: 1100px;
    margin: 0 auto;
	padding-bottom: 90px;
}
.profile-card {
    background: #1e1e1e;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #333;
}
.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #0f0f0f;
    margin: 0 auto 12px;
}
.profile-field {
    margin-bottom: 20px;
}
.profile-field label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.profile-name-display {
    font-size: 20px;
    font-weight: bold;
    color: #f5e6d3;
}

.profile-field input, .profile-field .field-value {
    width: 100%;
    padding: 12px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 12px;
    color: #f5e6d3;
    font-size: 14px;
}
.profile-field input:focus {
    outline: none;
    border-color: #d4af37;
}

.profile-name-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edit-name-btn {
    background: none;
    border: 1px solid #d4af37;
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: #d4af37;
    font-size: 12px;
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.save-name-btn {
    background: #d4af37;
    color: #0f0f0f;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.edit-btn, .save-btn {
    background: #d4af37;
    color: #0f0f0f;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
.profile-divider {
    height: 1px;
    background: #333;
    margin: 20px 0;
}
.bonus-amount-large {
    font-size: 36px;
    font-weight: bold;
    color: #d4af37;
    text-align: center;
}
.ref-link-block {
    background: #252525;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
}

.profile-card-item:hover {
    transform: translateY(-3px);
    border-color: #d4af37;
}

.profile-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.profile-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
}

.profile-card-value {
    font-size: 14px;
    color: #f5e6d3;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-card-desc {
    font-size: 10px;
    color: #888;
}

/* Модальные окна */
.soon-modal, .referral-modal, .bonus-modal, .discount-modal, .birthday-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.soon-modal.hidden, .referral-modal.hidden, .bonus-modal.hidden, .discount-modal.hidden, .birthday-modal.hidden {
    display: none;
}

.soon-modal-content, .referral-modal-content, .bonus-modal-content, .discount-modal-content, .birthday-modal-content {
    background: #1e1e1e;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid #d4af37;
    max-width: 340px;
    width: 80%;
}

.referral-modal-content, .bonus-modal-content, .discount-modal-content, .birthday-modal-content {
    max-width: 380px;
    width: 90%;
    text-align: left;
}

.referral-modal-header, .bonus-modal-header, .discount-modal-header, .birthday-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.referral-modal-header h3, .bonus-modal-header h3, .discount-modal-header h3, .birthday-modal-header h3 {
    color: #d4af37;
}

.close-referral-modal, .close-bonus-modal, .close-discount-modal, .close-birthday-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #d4af37;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.referral-link-container input {
    flex: 1;
    padding: 10px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: #d4af37;
    font-size: 11px;
}

.referral-link-container button, .save-birthday-btn {
    background: #d4af37;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.bonus-amount-display {
    font-size: 48px;
    font-weight: bold;
    color: #d4af37;
    text-align: center;
    margin-bottom: 16px;
}

.bonus-info-text {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-bottom: 20px;
}

.birthday-input {
    width: 100%;
    padding: 12px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 12px;
    color: #f5e6d3;
    margin: 16px 0;
}

@media (max-width: 700px) {
    .profile-grid {
        gap: 12px;
    }
    .profile-card-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
    border-radius: 20px;
    padding: 20px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

/* Эффект свечения при наведении */
.profile-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}
.profile-card-item:hover::before {
    left: 100%;
}

.profile-card-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.profile-card-item:active {
    transform: scale(0.97);
}

/* Иконка */
.profile-card-icon {
    font-size: 42px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.profile-card-item:hover .profile-card-icon {
    transform: scale(1.1);
}

/* Заголовок */
.profile-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

/* Подчеркивание при наведении */
.profile-card-item:hover .profile-card-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4af37;
    animation: underlineSlide 0.3s ease-out;
}

@keyframes underlineSlide {
    from { width: 0; }
    to { width: 100%; }
}

/* Значение */
.profile-card-value {
    font-size: 15px;
    color: #f5e6d3;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Описание */
.profile-card-desc {
    font-size: 11px;
    color: #888;
}

/* Бейдж статуса */
.profile-card-badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.profile-card-badge.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.profile-card-badge.soon {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a;
}

/* Эффект нажатия */
.profile-card-item:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Адаптивность для мобильных */
@media (max-width: 700px) {
    .profile-card-item {
        padding: 16px 10px;
    }
    .profile-card-icon {
        font-size: 32px;
    }
    .profile-card-title {
        font-size: 14px;
    }
    .profile-card-value {
        font-size: 13px;
    }
    .profile-card-desc {
        font-size: 10px;
    }
    .profile-card-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
}
    .profile-card-icon {
        font-size: 28px;
    }
    .profile-card-title {
        font-size: 13px;
    }
}

/* Анимация появления карточек */
.profile-card-item {
    animation: cardFadeIn 0.4s ease-out backwards;
}

.profile-card-item:nth-child(1) { animation-delay: 0.05s; }
.profile-card-item:nth-child(2) { animation-delay: 0.1s; }
.profile-card-item:nth-child(3) { animation-delay: 0.15s; }
.profile-card-item:nth-child(4) { animation-delay: 0.2s; }
.profile-card-item:nth-child(5) { animation-delay: 0.25s; }
.profile-card-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ НОВЫЕ АНИМАЦИИ ============ */

/* Эффект волны при клике */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Пульсация кнопки */
.btn-pulse {
    animation: btnPulse 0.3s ease-out;
}

@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); box-shadow: 0 0 0 3px rgba(212,175,55,0.5); }
    100% { transform: scale(1); }
}

/* Прыжок счётчика корзины */
@keyframes cartCounterJump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); background: #ffd700; color: #0f0f0f; }
    100% { transform: scale(1); }
}

.cart-jump {
    animation: cartCounterJump 0.3s ease-out;
}

/* Золотая вспышка для корзины */
@keyframes cartFlash {
    0% { background: #d4af37; box-shadow: 0 0 0 0 #d4af37; }
    50% { background: #ffd700; box-shadow: 0 0 0 15px rgba(212,175,55,0.4); }
    100% { background: #d4af37; box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.cart-flash-animation {
    animation: cartFlash 0.4s ease-out;
}

/* Плавное появление карточек */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-appear {
    animation: fadeSlideUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Золотое конфетти */
@keyframes confettiGold {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.gold-confetti {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    font-size: 20px;
    animation: confettiGold 1.5s linear forwards;
}

/* Золотая волна при переходе */
@keyframes goldWave {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.screen-transition {
    position: relative;
    overflow: hidden;
}

.screen-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
    animation: goldWave 0.6s ease-out;
    pointer-events: none;
    z-index: 100;
}

/* Встряска корзины */
@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.cart-shake {
    animation: cartShake 0.3s ease-in-out;
}

/* Модальное окно для гостя */
.guest-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.guest-modal.hidden {
    display: none;
}
.guest-modal-content {
    background: #1e1e1e;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid #d4af37;
    max-width: 320px;
    width: 80%;
}
.guest-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.guest-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 12px;
}
.guest-modal-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.guest-modal-buttons {
    display: flex;
    gap: 12px;
}
.guest-modal-btn {
    flex: 1;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.guest-modal-btn.primary {
    background: #d4af37;
    color: #0f0f0f;
    border: none;
}
.guest-modal-btn.secondary {
    background: none;
    border: 1px solid #d4af37;
    color: #d4af37;
}

        /* ============ НИЖНЕЕ МИНИ-МЕНЮ ============ */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(10px);
            border-top: 1px solid #d4af37;
            display: none;
            justify-content: space-evenly;
            align-items: center;
            padding: 8px 5px 18px;
            z-index: 1000;
        }
        .mobile-bottom-nav.show {
            display: flex;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            padding: 5px 8px;
            border-radius: 30px;
            flex: 1;
            max-width: 65px;
        }
        .bottom-nav-icon {
            font-size: 22px;
        }
        .bottom-nav-label {
            font-size: 9px;
            color: #888;
        }
        .bottom-nav-item.active .bottom-nav-icon {
            color: #d4af37;
        }
        .bottom-nav-item.active .bottom-nav-label {
            color: #d4af37;
            font-weight: bold;
        }

        /* ============ МОДАЛКИ ============ */
        .cart-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.95);
            z-index: 1100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .cart-modal-content {
            background: #1e1e1e;
            border-radius: 24px;
            max-width: 380px;
            width: 100%;
            max-height: 80%;
            overflow-y: auto;
            padding: 20px;
            border: 1px solid #d4af37;
        }
        .cart-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #d4af37;
        }
        .checkout-btn {
            background: #d4af37;
            border: none;
            border-radius: 40px;
            padding: 12px;
            width: 100%;
            font-weight: bold;
            margin-top: 15px;
            cursor: pointer;
        }
        .cart-qty-btn, .cart-remove-btn {
            background: #2a2a2a;
            border: none;
            border-radius: 20px;
            width: 26px;
            height: 26px;
            cursor: pointer;
            color: #d4af37;
        }

        /* ============ АНИМАЦИИ ============ */
        @keyframes starFloat {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(-120px) rotate(200deg); opacity: 0; }
        }
        @keyframes fadeOutMsg {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
            20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
        }
        .waiter-animation-container {
            position: fixed;
            top: 50%;
            left: 0;
            width: 100%;
            pointer-events: none;
            z-index: 2000;
            transform: translateY(-50%);
        }
        .running-waiter {
            position: absolute;
            top: 0;
            right: -100px;
            font-size: 64px;
            animation: runAcross 2.5s ease-out forwards;
        }
        @keyframes runAcross {
            0% { right: -100px; }
            100% { right: calc(100% + 100px); }
        }
        .waiter-toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
            border: 2px solid #d4af37;
            border-radius: 20px;
            padding: 20px 30px;
            text-align: center;
            z-index: 2001;
            animation: fadeInOut 2.5s ease-out forwards;
        }
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
            15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            85% { opacity: 1; }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); visibility: hidden; }
        }
        .call-waiter-btn.called { background: #2a5a3a; cursor: not-allowed; opacity: 0.7; }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); box-shadow: 0 0 15px #d4af37; }
            100% { transform: scale(1); }
        }
        .pulse-animation { animation: pulse 0.5s ease; }
        .flying-dish {
            position: fixed;
            font-size: 32px;
            z-index: 10000;
            pointer-events: none;
            filter: drop-shadow(0 0 5px #d4af37);
            transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.2);
        }
        .cart-right-bump {
            transform: scale(1.05);
            background: #ffd700;
        }
        
        /* Финальные фиксы */
        .dishes-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 20px !important;
            align-items: stretch !important;
        }

        .dish-card, .category-card {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
            min-width: 0 !important;
            width: 100% !important;
        }

        .dish-image {
            flex-shrink: 0 !important;
            height: 160px !important;
        }

        .dish-image img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
        }

        .dish-info {
            flex: 1 !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .dish-description {
            flex: 1 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 3 !important;
            -webkit-box-orient: vertical !important;
        }

        .dish-footer {
            flex-shrink: 0 !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            gap: 10px !important;
            flex-wrap: wrap !important;
        }

        .dishes-grid:after {
            content: "" !important;
            display: none !important;
        }
		.orders-content {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #333;
	width: 100%;
}

        /* Адаптивность */
        @media (max-width: 1000px) {
            .menu-layout { flex-direction: column; }
            .cart-sidebar { width: 100%; }
            .dishes-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 700px) {
            .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .dish-image { height: 120px; }
            .category-image { height: 100px; }
            .dish-description {
                flex: 0;
                margin-bottom: 12px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
            }
            .dish-card { min-height: auto; }
        }
        @media (max-width: 500px) {
            .dishes-grid { grid-template-columns: 1fr; }
            .dish-info { flex: 0; }
            .dish-description {
                flex: 0;
                margin-bottom: 12px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
            .dish-image { height: 130px; }
        }
        @media (min-width: 769px) {
            .mobile-bottom-nav { display: none !important; }
        }
        @media (max-width: 768px) {
            .cart-sidebar { display: none; padding: 12px; }
        }

        .hidden { display: none !important; }
		
		/* Золотая пыль при скролле */
.gold-dust {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 8px;
    opacity: 0;
    animation: dustFall 1.5s linear forwards;
}

@keyframes dustFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Модальное окно оценки */
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.rating-modal.hidden {
    display: none;
}

.rating-modal-content {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 32px;
    padding: 30px;
    text-align: center;
    border: 1px solid #d4af37;
    max-width: 320px;
    width: 85%;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.rating-title {
    font-size: 22px;
    color: #d4af37;
    margin-bottom: 20px;
}

.rating-emojis {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.rating-emoji {
    font-size: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
}

.rating-emoji:hover {
    transform: scale(1.2);
    background: rgba(212,175,55,0.2);
}

.rating-emoji.selected {
    transform: scale(1.3);
    background: #d4af37;
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}

.tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.tip-modal.hidden {
    display: none;
}

.tip-modal-content {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 32px;
    padding: 30px;
    text-align: center;
    border: 1px solid #d4af37;
    max-width: 320px;
    width: 85%;
}

.tip-amounts {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tip-btn {
    background: #252525;
    border: 1px solid #d4af37;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s;
}

.tip-btn:hover, .tip-btn.selected {
    background: #d4af37;
    color: #0f0f0f;
}

.tip-custom-input {
    width: 100%;
    padding: 12px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 12px;
    color: #f5e6d3;
    font-size: 16px;
    text-align: center;
    margin: 15px 0;
}

.tip-submit {
    background: #d4af37;
    color: #0f0f0f;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes coinRain {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

.tip-coin {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 2002;
    animation: coinRain 1s ease-out forwards;
}