/* =============================================================================
   assets/css/pages.css — стили экранов (меню, корзина, заказы, профиль, chef)
   ========================================================================== */

/* --- Контейнер секции ---------------------------------------------------- */
.section { padding: var(--space-4) var(--space-5); }

/* --- Шапка главного экрана (приветствие + поиск) ------------------------ */
.greet {
    padding: calc(var(--safe-top) + var(--space-6)) var(--space-5) var(--space-4);
}
.greet__hello { font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-medium); }
.greet__name { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.8px; line-height: 1.1; margin-top: 2px; }
.greet__sub { color: var(--text-muted); margin-top: var(--space-2); font-size: var(--fs-sm); }

/* Липкая шапка меню: поиск + категории приклеиваются к верху, приветствие уезжает */
.menu-sticky {
    position: sticky; top: var(--safe-top); z-index: 30;
    background: rgba(251,247,241,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: var(--space-2) 0 var(--space-2);
    border-bottom: 1px solid var(--border);
}
.searchbar { padding: var(--space-2) var(--space-5) var(--space-2); }
.searchbar .input { border-radius: var(--radius-lg); background: var(--bg-elevated); }
.menu-cats { padding: var(--space-1) var(--space-5) 0; }

/* Секции меню (для scroll-spy и прокрутки к категории) */
.menu-section { margin-bottom: var(--space-6); scroll-margin-top: 150px; }
.menu-section__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); padding: var(--space-3) var(--space-1) var(--space-3); }

/* Доп. отступ снизу, когда видна корзина — чтобы она не перекрывала последний товар */
body.has-cart #app-main { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 96px); }

/* --- Карточка блюда ------------------------------------------------------ */
.menu-grid { display: grid; gap: var(--space-4); }
.menu-card {
    background: var(--bg-elevated); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.menu-card:active { transform: scale(0.99); }
.menu-card__media {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-subtle), var(--cream));
}
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; }
.menu-card__media .badge { position: absolute; top: var(--space-3); left: var(--space-3); box-shadow: var(--shadow-xs); }
.menu-card__fav {
    position: absolute; top: var(--space-3); right: var(--space-3);
    width: 40px; height: 40px; border-radius: var(--radius-circle);
    background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: transform var(--dur-fast) var(--ease-spring), color var(--dur);
}
.menu-card__fav .ico { width: 22px; height: 22px; }
.menu-card__fav.is-on { color: var(--danger); }
.menu-card__fav:active { transform: scale(0.85); }
.menu-card__body { padding: var(--space-4) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.menu-card__cat { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: var(--fw-semi); }
.menu-card__name { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -0.2px; }
.menu-card__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; flex: 1; }
.menu-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); }
.menu-card__price { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text); }
.menu-card__price small { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--text-muted); }
.menu-card__add {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--primary); color: var(--text-invert);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease-spring), background var(--dur);
}
.menu-card__add:active { transform: scale(0.88) rotate(90deg); background: var(--primary-press); }
.menu-card__add .ico { width: 24px; height: 24px; }
.menu-card--unavailable { opacity: 0.6; }
.menu-card__badge-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(59,42,29,0.45); color: var(--color-foam); font-weight: var(--fw-bold); }

/* --- Чип секции ("Новинки", "Популярное") -------------------------------- */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-5) var(--space-5) var(--space-2);
}
.section-title h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.section-title a { color: var(--primary); font-size: var(--fs-sm); font-weight: var(--fw-semi); }

/* --- Корзина: фикс-панель ----------------------------------------------- */
.cart-bar {
    position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
    bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--space-3));
    z-index: 60; width: calc(100% - var(--space-6)); max-width: var(--app-max-w);
    background: var(--color-espresso); color: var(--color-foam);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4); display: flex; align-items: center; gap: var(--space-3);
    transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur);
    opacity: 0; pointer-events: none;
}
.cart-bar.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cart-bar__icon {
    position: relative; width: 46px; height: 46px; border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12); color: var(--color-foam);
    display: flex; align-items: center; justify-content: center; flex: none;
}
.cart-bar__icon .ico { width: 24px; height: 24px; }
.cart-bar__badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
    padding: 0 5px; border-radius: var(--radius-pill); background: var(--color-latte);
    color: var(--color-espresso); font-size: 11px; font-weight: var(--fw-bold);
    display: flex; align-items: center; justify-content: center;
}
.cart-bar__info { flex: 1; min-width: 0; }
.cart-bar__count { font-size: var(--fs-xs); opacity: 0.7; }
.cart-bar__total { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.cart-bar__btn {
    background: var(--color-latte); color: var(--color-espresso);
    font-weight: var(--fw-bold); padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill); flex: none;
}

/* --- Экран корзины ------------------------------------------------------ */
.cart-screen { padding-bottom: var(--space-9); }
.cart-rows { display: grid; gap: var(--space-3); }
.cart-row {
    background: var(--bg-elevated); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs); padding: var(--space-4);
    display: flex; flex-direction: column; gap: var(--space-3);
    animation: fade-up var(--dur) var(--ease-out) backwards;
}
.cart-row__name { font-weight: var(--fw-semi); }
.cart-row__price { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.cart-row__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cart-row__del { color: var(--text-muted); width: 36px; height: 36px; border-radius: var(--radius-circle); display: flex; align-items: center; justify-content: center; }
.cart-row__del:active { background: rgba(192,80,107,0.12); color: var(--danger); }
.cart-row__del .ico { width: 20px; height: 20px; }
.cart-row__sum { font-weight: var(--fw-bold); font-size: var(--fs-md); min-width: 80px; text-align: right; }
.cart-summary {
    position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--space-4));
    background: var(--bg-elevated); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: var(--space-5); margin: var(--space-4) var(--space-5) var(--space-6);
}
.cart-summary__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-4); }
.cart-summary__row strong { font-size: var(--fs-xl); }
.cart-summary__note { text-align: center; color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-3); }

/* --- Призрак перелёта товара в корзину --------------------------------- */
.fly-ghost {
    position: fixed; z-index: 999; font-size: 32px; pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.5s cubic-bezier(0.5, -0.3, 0.9, 0.4), opacity 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* --- Чип статуса заказа ------------------------------------------------- */
.status-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    color: var(--color-foam);
}
.status-chip--new       { background: var(--text-muted); }
.status-chip--cooking   { background: var(--warning); color: var(--text); }
.status-chip--ready     { background: var(--success); }
.status-chip--completed { background: var(--color-espresso); }
.status-chip--cancelled { background: var(--danger); }

/* --- Карточка заказа в списке ------------------------------------------ */
.order-list { display: grid; gap: var(--space-3); }
.order-card {
    background: var(--bg-elevated); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: var(--space-4);
    animation: fade-up var(--dur) var(--ease-out) backwards;
}
.order-card__head { display: flex; align-items: center; justify-content: space-between; }
.order-card__num { font-weight: var(--fw-bold); font-size: var(--fs-md); }
.order-card__meta { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); }
.order-card__zone { font-size: var(--fs-sm); margin-top: var(--space-2); color: var(--text-muted); display:flex;align-items:center;gap:6px; }
.order-card__zone .ico { width:18px;height:18px;color:var(--success); }
.order-card__more {
    margin-top: var(--space-3); color: var(--primary); font-weight: var(--fw-semi);
    font-size: var(--fs-sm); display:flex; align-items:center; gap:6px;
}
.order-card__more .ico { width:18px;height:18px; transform: scaleX(-1); }

/* --- Детали заказа ------------------------------------------------------ */
.detail { padding-bottom: var(--space-9); }
.detail__status { margin-bottom: var(--space-4); }
.detail__zone { font-size: var(--fs-sm); margin-bottom: var(--space-4); display:flex;align-items:center;gap:6px;color:var(--text-muted); }
.detail__zone .ico { width:20px;height:20px;color:var(--success); }
.order-items { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.order-item {
    display:flex; justify-content: space-between; align-items: center;
    padding: var(--space-3) 0; border-bottom: 1px solid var(--border);
}
.order-item__name { font-weight: var(--fw-medium); }
.order-item__qty { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.order-item__sum { font-weight: var(--fw-semi); }
.detail__total { display:flex; justify-content: space-between; align-items: baseline; padding: var(--space-4) 0; font-size: var(--fs-lg); }
.detail__total strong { font-weight: var(--fw-bold); }
.detail__comment { font-style: italic; color: var(--text-muted); padding: var(--space-3); background: var(--bg-subtle); border-radius: var(--radius-md); margin: var(--space-3) 0; }
.detail__history-title { font-weight: var(--fw-bold); margin: var(--space-5) 0 var(--space-3); }

/* --- Таймлайн истории --------------------------------------------------- */
.timeline { position: relative; padding-left: var(--space-5); }
.timeline__item {
    position: relative; padding-bottom: var(--space-4);
    display: grid; grid-template-columns: 1fr auto; gap: 2px;
    animation: fade-in var(--dur) var(--ease-out);
}
.timeline__item::before { content:''; position:absolute; left: -14px; top: 6px; bottom: -12px; width: 2px; background: var(--border); }
.timeline__item:last-child::before { display:none; }
.timeline__dot {
    position: absolute; left: -18px; top: 4px; width: 10px; height: 10px;
    border-radius: var(--radius-circle); background: var(--primary);
    box-shadow: 0 0 0 3px var(--bg-elevated);
}
.timeline__label { font-weight: var(--fw-medium); }
.timeline__time { font-size: var(--fs-xs); color: var(--text-muted); }
.timeline__note { grid-column: 1/-1; font-size: var(--fs-xs); color: var(--text-muted); }

/* --- Анимация пара при готовке (в карточке заказа) ---------------------- */
.steam-cup { position: relative; width: 80px; height: 100px; margin: var(--space-6) auto; }
.steam-cup__cup {
    position: absolute; bottom: 0; width: 80px; height: 64px;
    background: linear-gradient(160deg, var(--color-latte), var(--color-coffee));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.steam-cup__handle { position:absolute; bottom: 14px; right: -14px; width: 20px; height: 28px; border: 5px solid var(--color-coffee); border-left: none; border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.steam-cup__steam span {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(176,123,79,0.5); bottom: 64px;
    animation: steam-rise 2s var(--ease-in-out) infinite;
}
.steam-cup__steam span:nth-child(1) { left: 24px; animation-delay: 0s; }
.steam-cup__steam span:nth-child(2) { left: 38px; animation-delay: 0.5s; }
.steam-cup__steam span:nth-child(3) { left: 52px; animation-delay: 1s; }

/* --- Поздарительная анимация достижения --------------------------------- */
.ach-pop {
    position: absolute; left: 50%; top: 30%; transform: translateX(-50%) scale(0.8);
    background: var(--bg-elevated); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); padding: var(--space-7) var(--space-7); text-align: center;
    width: calc(100% - var(--space-9)); max-width: 360px;
    animation: ach-pop-in 0.5s var(--ease-spring) forwards;
    pointer-events: none;
}
.ach-pop__icon { font-size: 56px; animation: float 2s var(--ease-in-out) infinite; }
.ach-pop__title { color: var(--primary); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 1px; font-size: var(--fs-sm); margin-top: var(--space-3); }
.ach-pop__name { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-top: var(--space-2); }
.ach-pop__desc { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); }
@keyframes ach-pop-in {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
    60% { transform: translateX(-50%) scale(1.05); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* --- Поздарительная анимация готовности заказа -------------------------- */
.ready-celebrate {
    text-align: center; padding: var(--space-5);
    background: linear-gradient(160deg, rgba(123,160,91,0.12), rgba(176,123,79,0.10));
    border-radius: var(--radius-xl); margin-bottom: var(--space-4);
    animation: ach-pop-in 0.5s var(--ease-spring);
}
.ready-celebrate__emoji { font-size: 56px; animation: float 2.4s var(--ease-in-out) infinite; }
.ready-celebrate__title { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--success); margin-top: var(--space-2); }

/* =========================================================================
   ПАНЕЛЬ ПОВАРА
   ========================================================================= */
.chef-main { padding-top: var(--safe-top); padding-bottom: var(--space-9); }

/* Топ-бар */
.chef-top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: var(--space-2);
    padding: calc(var(--safe-top) + var(--space-3)) var(--space-4) var(--space-3);
    background: rgba(251,247,241,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.chef-top__brand { display:flex; align-items:center; gap:8px; font-weight: var(--fw-bold); font-size: var(--fs-md); margin-right: auto; }
.chef-top__brand .ico { width: 26px; height: 26px; color: var(--primary); }
.chef-tab {
    padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
    background: var(--bg-elevated); color: var(--text-muted);
    font-weight: var(--fw-medium); font-size: var(--fs-sm); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--dur) var(--ease-out);
}
.chef-tab.is-active { background: var(--color-espresso); color: var(--color-foam); }
.chef-tab__count {
    background: var(--danger); color: #fff; min-width: 20px; height: 20px;
    border-radius: var(--radius-pill); font-size: 11px; font-weight: var(--fw-bold);
    display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.chef-tab:not(.is-active) .chef-tab__count:empty { display: none; }

.chef-body { padding: var(--space-4); }
.chef-empty { text-align:center; padding: var(--space-9) var(--space-6); color: var(--text-muted); }
.chef-empty .ico { width: 56px; height: 56px; color: var(--border-strong); }
.chef-empty div { font-size: var(--fs-lg); font-weight: var(--fw-semi); color: var(--text); margin-top: var(--space-3); }

/* Карточка заказа повара — большая, минимум действий */
.chef-queue { display: grid; gap: var(--space-4); }
.chef-card {
    background: var(--bg-elevated); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md); padding: var(--space-5);
    border-left: 5px solid transparent;
    animation: fade-up var(--dur) var(--ease-out);
}
.chef-card--new       { border-left-color: var(--text-muted); }
.chef-card--cooking   { border-left-color: var(--warning); }
.chef-card--ready     { border-left-color: var(--success); }
.chef-card__head { display: flex; align-items: center; justify-content: space-between; }
.chef-card__num { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.chef-card__time { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-regular); margin-left: 8px; }
.chef-card__client { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px; }
.chef-card__items { margin: var(--space-3) 0; display: grid; gap: var(--space-1); }
.chef-item { font-size: var(--fs-md); padding: var(--space-2) var(--space-3); background: var(--bg-subtle); border-radius: var(--radius-md); }
.chef-item__qty { display: inline-block; min-width: 34px; font-weight: var(--fw-bold); color: var(--primary); }
.chef-card__comment { font-size: var(--fs-sm); color: var(--text-muted); font-style: italic; background: var(--bg-subtle); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.chef-card__zone { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; }
.chef-card__zone label { font-size: var(--fs-sm); color: var(--text-muted); }
.chef-select {
    flex: 1; padding: var(--space-3); background: var(--bg-elevated);
    border: 2px solid var(--border); border-radius: var(--radius-md); font-size: var(--fs-md);
    min-height: 48px;
}
.chef-card__total { font-size: var(--fs-sm); color: var(--text-muted); margin: var(--space-3) 0; }
.chef-card__total strong { color: var(--text); font-size: var(--fs-md); }
.chef-card__actions { display: flex; gap: var(--space-3); margin-top: var(--space-2); }

/* Большие кнопки действий */
.chef-act {
    flex: 1; min-height: 60px; border-radius: var(--radius-lg);
    font-weight: var(--fw-bold); font-size: var(--fs-md);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease-spring), background var(--dur);
}
.chef-act:active { transform: scale(0.97); }
.chef-act .ico { width: 24px; height: 24px; }
.chef-act--primary { background: var(--primary); color: var(--text-invert); }
.chef-act--success { background: var(--success); color: var(--text-invert); }
.chef-act--ghost   { background: var(--bg-subtle); color: var(--text-muted); }

/* История */
.chef-history { display: grid; gap: var(--space-2); }
.chef-hist { background: var(--bg-elevated); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 6px; }
.chef-hist__meta { color: var(--text-muted); font-size: var(--fs-sm); }

/* Управление меню */
.chef-menu-head { margin-bottom: var(--space-4); }
.chef-menu-list { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.chef-menu-row {
    background: var(--bg-elevated); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    padding: var(--space-3); display: flex; align-items: center; gap: var(--space-3);
    transition: opacity var(--dur);
}
.chef-menu-row.is-off { opacity: 0.5; }
.chef-menu-row__media { width: 56px; height: 56px; border-radius: var(--radius-md); overflow: hidden; flex: none; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.chef-menu-row__media img { width: 100%; height: 100%; object-fit: cover; }
.chef-menu-row__info { flex: 1; min-width: 0; }
.chef-menu-row__name { font-weight: var(--fw-semi); display: flex; align-items: center; gap: 6px; }
.chef-menu-row__meta { color: var(--text-muted); font-size: var(--fs-sm); }
.chef-menu-row__actions { display: flex; align-items: center; gap: var(--space-2); }
.chef-menu-form__btns { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.chef-menu-form__btns .btn { flex: 1; }

/* --- Экран «Каркас готов» (этап 2/6) -------------------------------------- */
.scaffold {
    min-height: 80dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: var(--space-6); gap: var(--space-5);
}
.scaffold__hero {
    width: 132px; height: 132px; border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--color-latte), var(--color-coffee));
    box-shadow: var(--shadow-pop);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; animation: float 3s var(--ease-in-out) infinite;
}
.scaffold__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.8px; }
.scaffold__text { color: var(--text-muted); max-width: 320px; }
.scaffold__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.chip {
    padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
    background: var(--bg-subtle); color: var(--text-muted);
    font-size: var(--fs-sm); font-weight: var(--fw-medium);
    border: 1px solid var(--border);
}
.chip--ok { background: rgba(123,160,91,0.16); color: var(--success); border-color: transparent; }

/* --- Экраны аутентификации ---------------------------------------------- */
.auth {
    min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
    padding: var(--space-7) var(--space-6);
}
.auth__hero {
    text-align: center; padding: var(--space-7) 0 var(--space-6);
}
.auth__mark {
    width: 96px; height: 96px; border-radius: var(--radius-xl); margin: 0 auto var(--space-5);
    background: linear-gradient(160deg, var(--color-latte), var(--color-coffee));
    box-shadow: var(--shadow-pop);
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; position: relative;
    animation: float 4s var(--ease-in-out) infinite;
}
.auth__brand { text-align: center; margin-bottom: var(--space-8); }
.auth__brand-mark {
    width: 84px; height: 84px; border-radius: var(--radius-xl); margin: 0 auto var(--space-4);
    background: linear-gradient(160deg, var(--color-latte), var(--color-coffee));
    box-shadow: var(--shadow-pop); display:flex;align-items:center;justify-content:center;
    font-size: 40px;
}
.auth__title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.5px; }
.auth__sub { color: var(--text-muted); margin-top: var(--space-2); }
.auth__form { display: flex; flex-direction: column; }
.auth__alt { text-align: center; margin-top: var(--space-6); color: var(--text-muted); font-size: var(--fs-sm); }
.auth__alt a { color: var(--primary); font-weight: var(--fw-semi); }
.auth__err {
    background: rgba(192, 80, 107, 0.10); color: var(--danger);
    padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
    font-size: var(--fs-sm); margin-bottom: var(--space-4); display: none;
}
.auth__err.is-show { display: block; animation: fade-up var(--dur) var(--ease-out); }

/* --- Профиль (каркас) ---------------------------------------------------- */
.profile-head {
    padding: var(--space-7) var(--space-5) var(--space-5);
    display: flex; align-items: center; gap: var(--space-4);
}
.profile-head__avatar {
    width: 64px; height: 64px; border-radius: var(--radius-circle);
    display:flex;align-items:center;justify-content:center;
    color: var(--color-foam); font-size: var(--fs-lg); font-weight: var(--fw-bold);
    box-shadow: var(--shadow-sm);
}

/* --- Выбор темы --------------------------------------------------------- */
.theme-picker { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: none; }
.theme-picker::-webkit-scrollbar { display: none; }
.theme-chip {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: var(--space-3); border-radius: var(--radius-lg);
    background: var(--bg-elevated); box-shadow: var(--shadow-xs);
    font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-muted);
    min-width: 76px; transition: all var(--dur) var(--ease-out);
}
.theme-chip__icon { font-size: 26px; }
.theme-chip.is-active { background: var(--primary); color: var(--text-invert); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* --- Строка настройки --------------------------------------------------- */
.setting-row {
    background: var(--bg-elevated); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    padding: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}

/* --- Карточка подсказки установки --------------------------------------- */
.install-card {
    background: var(--bg-elevated); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3);
    animation: fade-up var(--dur) var(--ease-spring);
}
.install-card__icon { font-size: 32px; flex: none; }
.install-card__text { flex: 1; display: flex; flex-direction: column; }
.install-card__text span { font-size: var(--fs-xs); color: var(--text-muted); }
.install-card__btn { background: var(--primary); color: var(--text-invert); font-weight: var(--fw-semi); padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); flex: none; }
.install-card__close { color: var(--text-muted); font-size: var(--fs-lg); flex: none; width: 36px; height: 36px; }
