:root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --bg3: #1a1a1a;
    --card-bg: #1c1c1c;
    --card-hover: #242424;
    --text: #ffffff;
    --text2: #a0a0a0;
    --text3: #666;
    --accent: #e63946;
    --accent2: #d62839;
    --accent-gradient: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    --border: rgba(255,255,255,0.08);
    --border2: rgba(255,255,255,0.12);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
body { font-family: var(--font); line-height: 1.5; }
#app { height: 100%; position: relative; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; display: flex; flex-direction: column; transition: opacity .25s ease; background: var(--bg); }
.screen.active { opacity: 1; visibility: visible; }
.hidden { display: none !important; }

/* LOADER */
#loader { background: var(--bg); align-items: center; justify-content: center; z-index: 100; }
.loader-content { text-align: center; }
.logo-icon { font-size: 3rem; margin-bottom: 12px; }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.02em; }
.loader-bar { width: 120px; height: 3px; background: var(--bg3); margin: 24px auto 0; border-radius: 2px; overflow: hidden; }
.loader-progress { height: 100%; background: var(--accent-gradient); animation: load 1.2s ease-out forwards; }
@keyframes load { to { width: 100%; } }

/* HEADER */
.header { height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--bg); }
.header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.btn-back, .btn-icon { width: 44px; height: 44px; border: none; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background .2s; }
.btn-back:active, .btn-icon:active { background: var(--bg3); }
.btn-back svg, .btn-icon svg { width: 24px; height: 24px; stroke: var(--text); stroke-width: 2; fill: none; }

/* BOTTOM NAV */
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; background: var(--bg2); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom, 0); z-index: 50; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: transparent; color: var(--text3); cursor: pointer; padding: 8px 12px; position: relative; transition: color .2s; }
.nav-item svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: stroke .2s; }
.nav-item span { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.02em; }
.nav-item.active { color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }
.cart-badge { position: absolute; top: 0; right: 4px; background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* HOME SCREEN */
.home-content { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 90px; -webkit-overflow-scrolling: touch; }
.home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.greeting { display: flex; flex-direction: column; }
.greeting-small { font-size: 0.7rem; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.greeting-name { font-size: 1.6rem; font-weight: 700; margin-top: 2px; }
.header-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg3); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border2); }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }
.header-avatar img.loaded { display: block; }
.header-avatar span { font-size: 1.2rem; font-weight: 600; color: var(--text2); }
.header-avatar img.loaded + span { display: none; }

/* ASK BUTTON */
.ask-button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; background: var(--accent-gradient); border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-bottom: 24px; box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); transition: transform .2s, box-shadow .2s; }
.ask-button:active { transform: scale(0.98); }
.ask-button svg { width: 22px; height: 22px; }

/* SECTIONS */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; margin-top: 8px; }
.section-header h2 { font-size: 1.15rem; font-weight: 700; }
.see-all { background: transparent; border: none; color: var(--accent); font-size: 0.85rem; font-weight: 500; cursor: pointer; }

/* CATEGORIES */
.categories-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.category-card { flex-shrink: 0; width: 110px; height: 130px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; background: var(--card-bg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.category-card:active img { transform: scale(1.05); }
.category-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); display: flex; align-items: flex-end; padding: 12px; }
.category-card span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; }

/* POPULAR SCROLL */
.popular-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.popular-scroll::-webkit-scrollbar { display: none; }
.popular-card { flex-shrink: 0; width: 280px; border-radius: var(--radius); overflow: hidden; background: var(--card-bg); cursor: pointer; position: relative; }
.popular-card img { width: 100%; height: 320px; object-fit: cover; }
.popular-card .favorite-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.popular-card .favorite-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.popular-card .favorite-btn.active svg { fill: var(--accent); stroke: var(--accent); }
.popular-card .info { padding: 16px; }
.popular-card .title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.popular-card .price-row { display: flex; align-items: center; gap: 10px; }
.popular-card .old-price { font-size: 0.85rem; color: var(--text3); text-decoration: line-through; }
.popular-card .price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.popular-card .add-btn { width: 100%; margin-top: 12px; padding: 12px; background: var(--accent-gradient); border: none; border-radius: var(--radius-sm); color: #fff; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: opacity .2s; }
.popular-card .add-btn:active { opacity: 0.8; }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.product-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; transition: transform .2s; display: flex; flex-direction: column; height: 100%; }
.product-card:active { transform: scale(0.98); }
.product-card .image-container { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card .favorite-btn { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.product-card .favorite-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.product-card .favorite-btn.active svg { fill: var(--accent); stroke: var(--accent); }
.product-card .info { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .title { font-size: 0.85rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 2.6em; }
.product-card .price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.product-card .old-price { font-size: 0.75rem; color: var(--text3); text-decoration: line-through; }
.product-card .price { font-size: 0.95rem; font-weight: 700; }

/* PROPERTIES GRID */
.properties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.property-card { background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg3) 100%); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: transform .2s, border-color .2s; }
.property-card:active { transform: scale(0.98); }
.property-card:hover { border-color: var(--accent); }
.property-card .icon { font-size: 2rem; margin-bottom: 10px; }
.property-card .name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.property-card .count { font-size: 0.75rem; color: var(--text2); }

/* SEARCH BAR */
.search-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.search-bar .search-icon { width: 20px; height: 20px; stroke: var(--text3); stroke-width: 2; fill: none; flex-shrink: 0; }
.search-bar input { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text); font-size: 0.95rem; outline: none; }
.search-bar input::placeholder { color: var(--text3); }
.search-bar input:focus { border-color: var(--accent); }
.filter-btn { width: 44px; height: 44px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.filter-btn svg { width: 20px; height: 20px; stroke: var(--text2); stroke-width: 2; fill: none; }

/* CATALOG */
.catalog-tabs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
.catalog-tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 18px; background: transparent; border: 1px solid var(--border2); border-radius: 25px; color: var(--text2); font-size: 0.85rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .2s; }
.tab-btn.active { background: var(--accent-gradient); border-color: transparent; color: #fff; }
.catalog-grid { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; grid-auto-rows: min-content; padding-bottom: 90px; -webkit-overflow-scrolling: touch; }

/* CATALOG CARD - новый дизайн */
.catalog-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.catalog-card .image-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; }
.catalog-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.catalog-card .fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s; }
.catalog-card .fav-btn:active { transform: scale(0.9); }
.catalog-card .fav-btn svg { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 2; fill: none; }
.catalog-card .fav-btn.active svg { fill: var(--accent); }
.catalog-card .card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.catalog-card .card-category { font-size: 0.75rem; color: var(--accent); font-weight: 500; text-transform: lowercase; }
.catalog-card .card-title { font-size: 0.9rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); min-height: 2.7em; }
.catalog-card .card-prices { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.catalog-card .card-old-price { font-size: 0.85rem; color: var(--text3); text-decoration: line-through; }
.catalog-card .card-price { font-size: 1rem; font-weight: 700; color: var(--text); }
.catalog-card .card-price::after { content: ' ₽'; }
.catalog-card .card-old-price::after { content: ' ₽'; }
.catalog-card .add-to-cart-btn { width: 100%; padding: 12px; background: var(--accent-gradient); border: none; border-radius: var(--radius-sm); color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 0.03em; transition: opacity .2s; margin-top: 10px; }
.catalog-card .add-to-cart-btn:active { opacity: 0.85; }

/* CART */
.cart-content { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 160px; }
.cart-item { display: flex; gap: 14px; background: var(--card-bg); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-item img { width: 90px; height: 90px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item .title { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.cart-item .price { font-size: 1rem; font-weight: 700; color: var(--accent); }
.cart-item .quantity { display: flex; align-items: center; gap: 14px; }
.cart-item .quantity button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border2); background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.cart-item .quantity span { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item .remove-btn { background: transparent; border: none; color: var(--text3); cursor: pointer; padding: 8px; }
.cart-item .remove-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.cart-footer { position: absolute; bottom: 70px; left: 0; right: 0; background: var(--bg2); border-top: 1px solid var(--border); padding: 16px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.1rem; font-weight: 600; }
.btn-checkout { width: 100%; padding: 16px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--text2); margin-bottom: 24px; font-size: 0.9rem; }
.btn-accent { padding: 14px 32px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; font-size: 0.95rem; font-weight: 600; cursor: pointer; }

/* FAVORITES */
.favorites-content { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; padding-bottom: 90px; }

/* MENU */
.menu-header { padding: 16px; height: auto; flex-direction: row; }
.menu-user-info { display: flex; align-items: center; gap: 14px; }
.menu-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--bg3); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border2); }
.menu-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }
.menu-avatar img.loaded { display: block; }
.menu-avatar span { font-size: 1.3rem; font-weight: 600; color: var(--text2); }
.menu-avatar img.loaded + span { display: none; }
.menu-user-details { display: flex; flex-direction: column; }
.menu-user-name { font-size: 1.1rem; font-weight: 600; }
.menu-user-balance { font-size: 0.85rem; color: var(--text2); }
.menu-content { flex: 1; overflow-y: auto; padding: 20px 16px 90px; }
.menu-section { margin-bottom: 28px; }
.menu-section h3 { font-size: 0.75rem; color: var(--text2); margin-bottom: 14px; letter-spacing: 0.1em; font-weight: 600; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-card { aspect-ratio: 1; background: var(--card-bg); border: 1px solid var(--border2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; transition: all .2s; }
.service-card:active { transform: scale(0.97); background: var(--card-hover); }
.service-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 36px; height: 36px; stroke: var(--text); stroke-width: 1.5; fill: none; }
.service-card span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text); }

/* PROFILE LIST */
.profile-list { display: flex; flex-direction: column; gap: 8px; }
.profile-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card-bg); border-radius: var(--radius); cursor: pointer; transition: background .2s; }
.profile-item:active { background: var(--card-hover); }
.profile-item-icon { font-size: 1.4rem; }
.profile-item span { flex: 1; font-size: 0.95rem; font-weight: 500; }
.profile-item .arrow { width: 20px; height: 20px; stroke: var(--text3); stroke-width: 2; fill: none; }

/* TOPUP BUTTON */
.topup-button { width: 100%; margin-top: 8px; padding: 16px 24px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }

/* PRODUCT PAGE */
.product-header { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 10; border: none; }
.product-header .btn-back, .product-header .btn-icon { background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.product-content { flex: 1; overflow-y: auto; padding-bottom: 100px; }
.product-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-details { padding: 20px 16px; }
.product-details h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.product-details .description { color: var(--text2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.product-details .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-details .tag { padding: 6px 12px; background: var(--bg3); border-radius: 20px; font-size: 0.8rem; color: var(--text2); }
.product-footer { position: absolute; bottom: 0; left: 0; right: 0; background: var(--bg2); border-top: 1px solid var(--border); padding: 16px; display: flex; align-items: center; gap: 16px; }
.product-price-block { display: flex; flex-direction: column; }
.product-old-price { font-size: 0.85rem; color: var(--text3); text-decoration: line-through; }
.product-price { font-size: 1.5rem; font-weight: 800; }
.btn-add-cart { flex: 1; padding: 16px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; }

/* PROPERTY PAGE */
.property-content { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: 20px; }
.property-hero { text-align: center; padding: 30px 20px; background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg3) 100%); border-radius: var(--radius); margin-bottom: 24px; }
.property-hero .icon { font-size: 4rem; margin-bottom: 16px; }
.property-hero h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.property-hero p { color: var(--text2); font-size: 0.95rem; line-height: 1.5; }
.property-products { margin-top: 24px; }
.property-products h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }

/* CHAT */
.assistants-panel { flex: 1; padding: 16px; overflow-y: auto; }
.assistants-panel h3 { font-size: 0.75rem; color: var(--text2); margin-bottom: 16px; letter-spacing: 0.1em; }
.assistants-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.assistant-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border2); border-radius: var(--radius); cursor: pointer; transition: all .2s; }
.assistant-card:active { background: var(--card-hover); }
.assistant-icon { font-size: 2rem; }
.assistant-card span:last-child { font-size: 0.8rem; color: var(--text2); font-weight: 500; }
.chat-conversation { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.chat-message { max-width: 85%; padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; line-height: 1.5; }
.chat-message.user { align-self: flex-end; background: var(--accent-gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-message.assistant { align-self: flex-start; background: var(--card-bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-input-container { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--bg); }
#chatInput { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 18px; color: var(--text); font-size: 0.95rem; outline: none; }

/* ASSISTANT-PRODAVEC */
.assistant-container { flex: 1; display: flex; flex-direction: column; }
.assistant-welcome { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%); border-bottom: 1px solid var(--border); }
.assistant-avatar { font-size: 4rem; margin-bottom: 16px; }
.assistant-welcome h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }
.assistant-welcome p { color: var(--text2); font-size: 0.9rem; }
.assistant-messages { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.assistant-message { margin-bottom: 16px; display: flex; gap: 12px; }
.assistant-message.user { flex-direction: row-reverse; }
.assistant-message .assistant-avatar-small { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.assistant-message .message-bubble { max-width: 75%; padding: 14px 18px; border-radius: 20px; font-size: 0.95rem; line-height: 1.5; }
.assistant-message.user .message-bubble { background: var(--accent-gradient); color: #fff; }
.assistant-message.assistant .message-bubble { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.assistant-message .product-suggestion { margin-top: 12px; padding: 12px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border2); }
.assistant-message .product-suggestion h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 6px; }
.assistant-message .product-suggestion p { font-size: 0.85rem; color: var(--text2); margin-bottom: 8px; }
.assistant-message .product-suggestion button { width: 100%; padding: 10px; background: var(--accent-gradient); border: none; border-radius: var(--radius-sm); color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.assistant-input-container { display: flex; gap: 12px; padding: 16px; background: var(--bg); border-top: 1px solid var(--border); }
.assistant-input-container input { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: 25px; padding: 14px 20px; color: var(--text); font-size: 0.95rem; outline: none; }
.assistant-input-container button { width: 52px; height: 52px; background: var(--accent-gradient); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; }
.assistant-input-container button:active { transform: scale(0.95); }
.assistant-input-container button svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
#chatInput:focus { border-color: var(--accent); }
#chatSendBtn { width: 52px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#chatSendBtn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

/* PHOTO */
.photo-content { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow-y: auto; }
.photo-preview { flex: 1; min-height: 250px; max-height: 400px; background: var(--card-bg); border: 1px dashed var(--border2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.placeholder { color: var(--text3); font-size: 0.9rem; }
.photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.photo-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.photo-actions button { flex: 1; padding: 14px; background: var(--accent-gradient); color: #fff; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.photo-actions button.secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border2); }
.input-row { display: flex; gap: 10px; }
.input-row textarea { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px; color: var(--text); font-size: 0.95rem; resize: none; outline: none; min-height: 80px; }
.input-row textarea:focus { border-color: var(--accent); }
#generateBtn { width: 52px; background: var(--accent-gradient); border: none; border-radius: var(--radius); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#generateBtn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

/* HOROSCOPE */
.zodiac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; overflow-y: auto; }
.zodiac-card { 
    aspect-ratio: 1; 
    background: var(--card-bg); 
    border: 1px solid var(--border2); 
    border-radius: var(--radius); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: all .2s; 
    padding: 16px 12px;
    min-height: 100px;
}
.zodiac-card:active { background: var(--card-hover); transform: scale(0.98); }
.zodiac-card.selected { border-color: var(--accent); background: rgba(230, 57, 70, 0.1); box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2); }
.zodiac-card .zodiac-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zodiac-card .zodiac-icon svg { width: 100%; height: 100%; stroke: var(--accent); }
.zodiac-card.selected .zodiac-icon svg { stroke: var(--accent); filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.5)); }
.zodiac-card .zodiac-name { font-size: 0.8rem; color: var(--text); font-weight: 600; letter-spacing: 0.03em; text-align: center; line-height: 1.2; }
.zodiac-card .zodiac-dates { font-size: 0.6rem; color: var(--text3); font-weight: 400; text-align: center; white-space: nowrap; }
.horoscope-result { padding: 16px; border-top: 1px solid var(--border); }
.horoscope-result h3 { font-size: 1.1rem; margin-bottom: 12px; }
.horoscope-result p { font-size: 0.95rem; color: var(--text2); line-height: 1.6; }

/* ORDERS, BALANCE */
.orders-content, .balance-content { flex: 1; overflow-y: auto; padding: 16px; }
.balance-card { background: var(--accent-gradient); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; text-align: center; }
.balance-amount { font-size: 2.5rem; font-weight: 800; }
.balance-label { font-size: 0.9rem; opacity: 0.9; margin-top: 4px; }

/* TOAST */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--card-bg); border: 1px solid var(--border2); padding: 14px 28px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; opacity: 0; transition: all .3s ease; z-index: 1000; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* SPINNER */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FAVORITE ACTIVE */
.favorite-btn.active svg { fill: var(--accent); stroke: var(--accent); }
