/* --- ПЕРЕМЕННЫЕ ДЛЯ ТЕМ --- */
:root[data-theme="dark"] {
    --bg-color: #0a0a0c;
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    --accent-gold: #e5b35c;
    --accent-red: #d93838;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.16); 
    --nav-bg: rgba(20, 20, 22, 0.75);
    --blob-1: rgba(217, 56, 56, 0.15);
    --blob-2: rgba(229, 179, 92, 0.1);
}

:root[data-theme="light"] {
    --bg-color: #f7f7f9;
    --text-main: #1a1a1e;
    --text-muted: #6b6b75;
    --accent-gold: #c49132;
    --accent-red: #c02929;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1); 
    --nav-bg: rgba(255, 255, 255, 0.85);
    --blob-1: rgba(255, 180, 180, 0.4);
    --blob-2: rgba(255, 230, 150, 0.4);
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* {
    box-sizing: border-box; margin: 0; padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body {
    background-color: var(--bg-color); color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex; justify-content: center;
    min-height: 100vh; overflow-x: hidden; position: relative;
}

/* --- ФОН --- */
.bg-blobs { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.8; animation: float 10s infinite alternate ease-in-out; }
.blob-1 { width: 300px; height: 300px; background: var(--blob-1); top: -50px; left: -100px; }
.blob-2 { width: 250px; height: 250px; background: var(--blob-2); bottom: 20%; right: -100px; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

/* --- КОНТЕЙНЕР --- */
.app-container { width: 100%; max-width: 420px; min-height: 100vh; position: relative; padding-bottom: 100px; z-index: 1; }

/* --- ШАПКА --- */
.header { padding: 24px 20px 16px; display: flex; justify-content: space-between; align-items: center; }
.brand-name {
    font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase;
}
.header-actions { display: flex; gap: 15px; align-items: center; }
.icon-btn {
    position: relative; font-size: 22px; cursor: pointer; background: var(--glass-bg); border: 1px solid var(--glass-border);
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.icon-btn:active { transform: scale(0.9); }

/* --- КАРУСЕЛЬ АКЦИЙ --- */
.promo-carousel-container { margin: 0 20px 24px; position: relative; }
.promo-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; gap: 10px; border-radius: 24px; scroll-behavior: smooth; }
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; height: 150px; border-radius: 24px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 1px solid var(--glass-border); }
.promo-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.promo-content p { font-size: 13px; color: #dddddd; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.carousel-indicators { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.carousel-indicators .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; transition: all 0.3s ease; }
.carousel-indicators .dot.active { width: 18px; border-radius: 4px; background: var(--accent-gold); opacity: 1; }

/* --- ГЛАВНЫЙ БАННЕР --- */
.hero { margin: 0 20px 24px; height: 220px; border-radius: 24px; background: linear-gradient(to top, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0) 60%), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=800&q=80') center/cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); border: 1px solid var(--glass-border); }
.hero h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600; font-style: italic; margin-bottom: 4px; color: #ffffff; }
.hero p { font-size: 14px; color: #dddddd; }

/* --- СЕТКА КНОПОК --- */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 20px 24px; }
.action-card { background: var(--glass-bg); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); border: 1px solid var(--glass-border); border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 8px 20px rgba(0,0,0,0.05); }
.action-card:active { transform: scale(0.96); }
.action-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.action-text h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.action-text p { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* --- БАННЕР ЛОЯЛЬНОСТИ --- */
.promo-banner { margin: 0 20px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(217, 56, 56, 0.1) 100%); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 25px rgba(0,0,0,0.05); backdrop-filter: blur(10px); }
.promo-text h4 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--accent-red); margin-bottom: 4px; }
.promo-text p { font-size: 12px; color: var(--text-muted); }
.promo-badge { width: 50px; height: 50px; border-radius: 50%; background: rgba(217, 56, 56, 0.1); border: 1px solid rgba(217, 56, 56, 0.3); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent-red); }

/* --- НИЖНЯЯ НАВИГАЦИЯ --- */
.bottom-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 380px; background: var(--nav-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); border-radius: 28px; display: flex; justify-content: space-around; padding: 12px 10px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 40px rgba(0,0,0,0.1); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 10px; font-weight: 500; cursor: pointer; padding: 8px 16px; border-radius: 16px; transition: all 0.3s ease; }
.nav-item.active { color: var(--accent-gold); background: rgba(229, 179, 92, 0.1); }
.nav-icon { font-size: 20px; transition: transform 0.3s; }
.nav-item.active .nav-icon { transform: translateY(-2px); }

/* Скрываем неактивные экраны */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- МЕНЮ --- */
.category-scroll { display: flex; overflow-x: auto; gap: 10px; padding: 0 20px 20px; scrollbar-width: none; -ms-overflow-style: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-pill { white-space: nowrap; padding: 10px 16px; border-radius: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.category-pill.active { background: var(--accent-gold); color: #1a1a1e; border-color: var(--accent-gold); box-shadow: 0 4px 15px rgba(229, 179, 92, 0.3); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px; }
.menu-card { background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; }
.menu-card:active { transform: scale(0.97); }
.menu-image { width: 100%; height: 120px; background-color: #2a2a2a; background-size: cover; background-position: center; }
.menu-info { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.menu-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.2; }
.menu-desc { font-size: 10px; color: var(--text-muted); line-height: 1.3; margin-bottom: 12px; flex-grow: 1; }
.menu-bottom { display: flex; justify-content: space-between; align-items: center; }
.menu-price { font-size: 15px; font-weight: 700; color: var(--accent-gold); }
.add-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-gold); color: #1a1a1e; border: none; font-size: 20px; font-weight: bold; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(229, 179, 92, 0.2); }
.add-btn:active { transform: scale(0.9); }

/* --- БРОНЬ (СХЕМА ЗАЛА) --- */
.floor-plan-container { padding: 10px 20px; margin-bottom: 10px; }
.floor-plan { position: relative; width: 100%; height: 500px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: inset 0 0 40px rgba(0,0,0,0.1); overflow: hidden; }
.table-card { position: absolute; width: 70px; height: 70px; background: var(--nav-bg); border: 1px solid var(--glass-border); border-radius: 16px; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.table-card:active { transform: scale(0.95); }
.table-card.available:hover { border-color: var(--accent-gold); box-shadow: 0 0 15px rgba(229, 179, 92, 0.2); }
.table-card.selected { background: rgba(229, 179, 92, 0.15); border-color: var(--accent-gold); box-shadow: 0 0 20px rgba(229, 179, 92, 0.4); }
.table-icon { font-size: 24px; margin-bottom: 2px; }
.table-info { font-size: 10px; line-height: 1.2; color: var(--text-main); text-align: center; }
.table-card.big-table { width: 100px; height: 80px; border-radius: 20px; }
.center-pillar { position: absolute; width: 60px; height: 60px; border: 2px dashed var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 9px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.confirm-btn { width: 100%; padding: 16px; border-radius: 16px; background: var(--accent-gold); color: #1a1a1e; font-size: 16px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(229, 179, 92, 0.2); transition: all 0.3s; }
.confirm-btn:disabled { background: var(--glass-bg); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.confirm-btn:not(:disabled):active { transform: scale(0.98); }

/* --- КОРЗИНА --- */
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--accent-red); color: white; font-size: 10px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-badge.visible { opacity: 1; transform: scale(1); }
.cart-item { display: flex; align-items: center; justify-content: space-between; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.cart-item-info { flex-grow: 1; padding-right: 10px; }
.cart-item-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--accent-gold); font-weight: 700; }
.cart-controls { display: flex; align-items: center; gap: 10px; background: var(--nav-bg); padding: 5px 10px; border-radius: 20px; border: 1px solid var(--glass-border); }
.cart-controls button { background: none; border: none; color: var(--text-main); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.cart-controls span { font-size: 14px; font-weight: 600; width: 20px; text-align: center; }
.cart-total-box { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 380px; background: var(--nav-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 90; }

/* --- ОФОРМЛЕНИЕ (CHECKOUT) --- */
.toggle-group { display: flex; background: var(--glass-bg); border-radius: 16px; padding: 4px; border: 1px solid var(--glass-border); }
.toggle-btn { flex: 1; padding: 12px; border-radius: 12px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.toggle-btn.active { background: var(--accent-gold); color: #1a1a1e; box-shadow: 0 4px 10px rgba(229, 179, 92, 0.2); }

/* Сетка для адреса */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.address-grid #order-street, .address-grid #order-intercom { grid-column: 1 / -1; }

/* Ошибки в инпутах */
.custom-input.input-error { border-color: var(--accent-red) !important; box-shadow: 0 0 10px rgba(217, 56, 56, 0.2); }

/* Блок списания бонусов */
.bonus-toggle-box { display: flex; justify-content: space-between; align-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 15px; border-radius: 16px; cursor: pointer; }
.toggle-switch { width: 44px; height: 24px; background: var(--nav-bg); border-radius: 12px; position: relative; transition: background 0.3s; border: 1px solid var(--glass-border); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--text-muted); border-radius: 50%; transition: transform 0.3s; }
.bonus-toggle-box.active .toggle-switch { background: var(--accent-gold); border-color: var(--accent-gold); }
.bonus-toggle-box.active .toggle-switch::after { transform: translateX(20px); background: #1a1a1e; }

/* --- ИСТОРИЯ ЗАКАЗОВ --- */
.order-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 16px; margin-bottom: 15px; }
.order-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.order-date { font-size: 12px; color: var(--text-muted); }
.order-status { font-size: 12px; font-weight: 600; color: #4cd137; }
.order-items-list { font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.order-bonus-info { font-size: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.bonus-spent { color: var(--accent-red); }
.bonus-earned { color: #4cd137; }
.order-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--glass-border); padding-top: 12px; margin-top: 12px; }
.order-total { font-weight: 700; color: var(--accent-gold); font-size: 16px; }
.order-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-main); transition: all 0.2s; }
.order-btn:active { transform: scale(0.95); background: var(--accent-gold); color: #1a1a1e; border-color: var(--accent-gold); }
.dev-btn { background: transparent; border: 1px dashed var(--text-muted); color: var(--text-muted); padding: 6px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.dev-btn:active { transform: scale(0.95); background: var(--glass-bg); }

/* --- ПРОФИЛЬ --- */
.profile-header { display: flex; align-items: center; gap: 15px; padding: 0 20px 24px; cursor: pointer; position: relative; }
.profile-header:active { opacity: 0.7; }
.edit-icon { position: absolute; right: 20px; font-size: 18px; opacity: 0.5; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.1); }
.user-info h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 4px; }
.user-info p { font-size: 13px; color: var(--text-muted); }

/* --- КАРТА ЛОЯЛЬНОСТИ --- */
.loyalty-card { margin: 0 20px 24px; border-radius: 20px; padding: 20px; color: #1a1a1e; box-shadow: 0 15px 30px rgba(0,0,0,0.2); position: relative; overflow: hidden; transition: background 0.5s ease, box-shadow 0.5s ease; }
.loyalty-card.tier-bronze { background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%); box-shadow: 0 15px 30px rgba(205, 127, 50, 0.3); }
.loyalty-card.tier-silver { background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%); box-shadow: 0 15px 30px rgba(200, 200, 200, 0.3); }
.loyalty-card.tier-gold { background: linear-gradient(135deg, #ffd700 0%, #daa520 100%); box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4); }
.loyalty-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%); transform: rotate(30deg); pointer-events: none; }
.loyalty-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.loyalty-logo { font-size: 20px; }
.loyalty-balance h3 { font-size: 36px; font-weight: 800; line-height: 1; }
.loyalty-balance p { font-size: 12px; font-weight: 600; opacity: 0.8; margin-bottom: 15px; }
.loyalty-bottom p { font-size: 10px; font-weight: 600; opacity: 0.9; }
.cashback-status { background: rgba(0,0,0,0.1); padding: 10px; border-radius: 12px; }
.progress-bar-bg { width: 100%; height: 6px; background: rgba(0,0,0,0.2); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #1a1a1e; border-radius: 3px; transition: width 0.5s ease; }
.profile-menu { margin: 0 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; }
.profile-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--glass-border); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: rgba(255, 255, 255, 0.05); }
.profile-menu-item .arrow { color: var(--text-muted); font-size: 20px; line-height: 1; }

/* --- ВЫЕЗЖАЮЩИЕ ПАНЕЛИ --- */
.booking-sheet-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.booking-sheet-overlay.active { opacity: 1; pointer-events: all; }
.booking-sheet-content { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: 420px; background: var(--bg-color); border-top: 1px solid var(--glass-border); border-radius: 24px 24px 0 0; padding: 20px 24px 30px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); box-shadow: 0 -10px 40px rgba(0,0,0,0.5); }
.booking-sheet-overlay.active .booking-sheet-content { transform: translateX(-50%) translateY(0); }
.sheet-handle { width: 40px; height: 4px; background: var(--glass-border); border-radius: 2px; margin: 0 auto 15px; }
.booking-form-group { margin-bottom: 15px; }
.booking-form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.custom-input { width: 100%; padding: 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 15px; outline: none; transition: border-color 0.3s; color-scheme: dark; cursor: pointer; }
.custom-input:focus { border-color: var(--accent-gold); }
.guest-controls { display: flex; align-items: center; gap: 15px; background: var(--glass-bg); padding: 5px 15px; border-radius: 20px; border: 1px solid var(--glass-border); }
.guest-controls button { background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; }
.guest-controls span { font-size: 16px; font-weight: 700; width: 20px; text-align: center; }
.cancel-btn { width: 100%; padding: 14px; margin-top: 10px; background: none; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; }

/* --- СЕТКА ВРЕМЕНИ --- */
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow-y: auto; padding-bottom: 10px; margin-bottom: 10px; }
.time-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 12px 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: all 0.2s; }
.time-btn:active { transform: scale(0.95); background: var(--accent-gold); color: #1a1a1e; border-color: var(--accent-gold); }

/* --- КАСТОМИЗАЦИЯ (РАЗМЕРЫ, СОУСЫ, ИНГРЕДИЕНТЫ) --- */
.size-option-btn { display: flex; justify-content: space-between; align-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 16px 20px; border-radius: 16px; cursor: pointer; transition: all 0.2s; }
.size-option-btn:active { transform: scale(0.98); border-color: var(--accent-gold); }
.size-option-btn .size-name { font-size: 16px; font-weight: 600; }
.size-option-btn .size-price { font-size: 16px; font-weight: 700; color: var(--accent-gold); }
.sauce-pill { padding: 10px 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.sauce-pill.active { background: rgba(229, 179, 92, 0.15); border-color: var(--accent-gold); color: var(--accent-gold); }
.ingredient-pill { padding: 8px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; user-select: none; display: flex; align-items: center; gap: 5px;}
.ingredient-pill::before { content: '✓'; font-size: 12px; color: var(--accent-gold); }
.ingredient-pill.removed { text-decoration: line-through; opacity: 0.5; }
.ingredient-pill.removed::before { content: '✕'; color: var(--accent-red); }

/* --- ВЫБОР АВАТАРКИ --- */
.avatar-option {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.2s;
}
.avatar-option.active {
    border-color: var(--accent-gold);
    background: rgba(229, 179, 92, 0.15);
    transform: scale(1.1);
}

/* --- МОДАЛЬНОЕ ОКНО И ТОСТ --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--nav-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 24px; width: 85%; max-width: 320px; text-align: center; transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 8px; color: var(--text-main); }
.modal-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.4; white-space: pre-line; }
.modal-buttons { display: flex; gap: 10px; }
.modal-btn { flex: 1; padding: 14px; border-radius: 16px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.modal-btn:active { transform: scale(0.95); }
.modal-btn.cancel { background: var(--glass-bg); color: var(--text-main); border: 1px solid var(--glass-border); }
.modal-btn.confirm { background: var(--accent-red); color: #ffffff; box-shadow: 0 4px 15px rgba(217, 56, 56, 0.3); }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent-gold); color: #1a1a1e; padding: 12px 24px; border-radius: 20px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1000; box-shadow: 0 10px 20px rgba(229, 179, 92, 0.3); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }