/* Тъмният хедър на таблото (30.09.2026).

   Тъмнокафяво (като зареждащия екран и страничната колона на дигиталното
   меню) вместо белия блок с голямата карта на потребителя. Профилът е бутон
   с падащо меню: Настройки, Моят абонамент, Помощ, Изход.

   Нарочно НЕ пипа отстоянията и радиусите на `.header` - те се менят в пет
   медия заявки в main.css. Тук са само цветове, сенки и новите елементи, за да
   не се счупи нито един размер на екрана. Зарежда се СЛЕД main.css и ui-kit.css.

   ❗ id-тата userName / userRole / userAvatar / userStatus / userStatusText се
   попълват от auth.js; headerOrg* и менюто - от core/header.js. */

.container > .header {
    background: linear-gradient(180deg, #3a2f26, #2b231d);
    box-shadow: 0 12px 32px rgba(60, 40, 25, .28), 0 2px 8px rgba(0, 0, 0, .12);
}

.header .logo-text h1 {
    background: linear-gradient(135deg, #f1d3a6, #d4a574);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header .logo-text .subtitle { color: #b9a48e; }

/* ---- заведение и абонамент до логото (десктоп) */
.header-org {
    margin-right: auto;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    line-height: 1.25;
}
.header-org[hidden] { display: none; }
.ho-name { color: #fff; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.ho-status { display: inline-flex; align-items: center; gap: 7px; color: #c9b8a3; font-size: .8rem; font-weight: 500; }
.ho-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9d45; box-shadow: 0 0 0 3px rgba(63, 157, 69, .22); flex: none; }
.ho-status.is-trial .ho-dot, .ho-status.is-warning .ho-dot { background: #e8a33a; box-shadow: 0 0 0 3px rgba(232, 163, 58, .22); }
.ho-status.is-expired .ho-dot { background: #e25b3a; box-shadow: 0 0 0 3px rgba(226, 91, 58, .25); }
.ho-status.is-premium .ho-dot { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }

/* ---- профилът: бутон + падащо меню */
.user-section { position: relative; }
.hdr-profile {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 12px 5px 5px; min-height: 0;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: #fff;
    font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.hdr-profile:hover, .hdr-profile[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.hdr-profile:focus-visible { outline: 3px solid #e0b98a; outline-offset: 2px; }
.hdr-avatar {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #c49464); color: #fff;
    display: grid; place-items: center; font-size: .95rem;
}
.hdr-name { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-caret { font-size: .7rem; color: #e0b98a; transition: transform .2s; }
.hdr-profile[aria-expanded="true"] .hdr-caret { transform: rotate(180deg); }

.hdr-menu {
    position: absolute; right: 0; top: calc(100% + 12px); z-index: 1300;
    width: 300px; padding: 8px;
    background: #fff; border: 1px solid #efe4d8; border-radius: 18px;
    box-shadow: 0 22px 50px rgba(60, 40, 25, .3), 0 2px 8px rgba(0, 0, 0, .08);
    animation: pm-in .14s ease-out;
}
.hdr-menu[hidden] { display: none; }
@keyframes pm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.pm-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid #f1e8de; margin-bottom: 6px; }
.pm-avatar { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #f3e6d6; color: #a8743f; display: grid; place-items: center; font-size: 1.1rem; }
.pm-who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-who .user-role { white-space: normal; font-size: .85rem; font-weight: 700; color: #3f3328; }

.pm-item {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0;
    padding: 11px 12px; border: 0; border-radius: 11px; background: none;
    font: inherit; font-weight: 600; font-size: .95rem; color: #5a4a3a; text-align: left; text-decoration: none; cursor: pointer;
    transition: background .12s, color .12s;
}
.pm-item i { width: 20px; text-align: center; color: #a8743f; font-size: .95rem; }
.pm-item:hover, .pm-item:focus-visible { background: #fbf4ec; color: #3f3328; outline: none; }
.pm-item[hidden] { display: none; }
.pm-sep { height: 1px; background: #f1e8de; margin: 6px 4px; }
.pm-out, .pm-out i { color: #b3261e; }
.pm-out:hover, .pm-out:focus-visible { background: #fdecea; color: #8f1e17; }

/* ---- мобилен: същият тъмен хедър, с компактната информация и хамбургера */
.header .header-user-info {
    background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); box-shadow: none;
}
.header .header-user-name { color: #fff; }
.header .header-user-status { color: #8fd694; }
.header .hamburger-menu {
    background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); box-shadow: none;
}
.header .hamburger-menu:hover { background: rgba(255, 255, 255, .18); }

/* Под 1100px организацията до логото не се побира до профила - остава в менюто му. */
@media (max-width: 1100px) {
    .header-org { display: none; }
    .hdr-name { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .hdr-menu { animation: none; }
    .hdr-caret { transition: none; }
}

/* ==========================================================================
   Телефони и малки екрани (30.09.2026): хедърът е ЕДИН ред
   Преди логото и профилът бяха на първия ред, а POS и хамбургерът на втория
   (139px височина). Сега: знак + име вляво, POS и хамбургер вдясно, около 60px.
   Подзаглавието се скрива, а компактният профил остава само при 601-821px -
   на телефон същата информация е в менюто на хамбургера.
   ========================================================================== */
@media (max-width: 821px) {
    .container > .header { flex-wrap: nowrap; gap: 10px; align-items: center; }
    .header .logo-section { flex: 1 1 auto; min-width: 0; gap: 10px; }
    .header .logo { width: 40px; height: 40px; flex: none; }
    .header .logo-text h1 { font-size: 1.45rem; line-height: 1.1; white-space: nowrap; }
    .header .logo-text .subtitle { display: none; }
    .header .header-user-info { flex: 0 1 auto; max-width: 150px; margin-left: auto; }
    #posHeaderBtn { padding: 0 14px !important; min-height: 44px; flex: none; font-size: .88rem !important; border-radius: 12px !important; }
    .header .hamburger-menu { flex: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border-radius: 12px; margin: 0; }
    .header .hamburger-line { margin: 2.5px 0; }
}
@media (max-width: 768px) {
    .container > .header { padding-top: 10px; padding-bottom: 10px; }
    .header .logo-section { margin-right: auto; }
}
@media (max-width: 600px) {
    .header .header-user-info { display: none; }
}
@media (max-width: 360px) {
    .header .logo-text h1 { font-size: 1.25rem; }
    #posHeaderBtn { padding: 0 11px !important; }
    #posHeaderBtn i { display: none; }
}
@media (pointer: coarse) {
    .hdr-profile { min-height: 44px; }
    .pm-item { min-height: 48px; }
}

/* Телефон: знакът вляво + надписът MenuList (06.10.2026). Подзаглавието е скрито над.
   ❗ `.logo-section` в main.css е `justify-content: center`, а тук расте с flex:1 -
   без този ред знакът излизаше в средата на хедъра. */
@media (max-width: 821px) {
    .header .logo-section { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .header .logo { width: 44px; height: 44px; }
    .header .logo-text h1 { font-size: 1.5rem; }
}

/* ==========================================================================
   Вариант C (05.10.2026): абонаментът и настройките живеят в менюто
   Табовете „Настройки" и „Моят абонамент" ги няма в лентата. JS: core/header.js
   (картата и листа), components/account-dialogs.js (малките прозорци).
   ========================================================================== */
.hdr-menu { width: 340px; }
.pm-name { font-weight: 800; font-size: .98rem; color: #2b231d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-who .user-role { font-weight: 600; color: #8a7866; font-size: .8rem; }
/* Ролята и статусът са в хедъра ("Абонамент: активен"), картата носи и самия статус.
   ❗ !important е нужен: auth.js слага inline display:inline-flex на #userStatus.
   Елементите остават в DOM - auth.js и sync() в header.js ги четат. */
.pm-who .user-role, .pm-who .user-status { display: none !important; }
/* Името е вече на бутона горе - на десктоп главата отпада. На телефон бутонът на профила е скрит, затова листът (.is-sheet) я пази */
.hdr-menu:not(.is-sheet) .pm-head { display: none; }
.pm-label { padding: 8px 12px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #a08c77; }
.pm-tail { margin-left: auto; padding-left: 10px; max-width: 150px; font-size: .78rem; font-weight: 500; color: #a08c77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-subcard[hidden] { display: none; }

.psc {
    margin: 2px 2px 8px; padding: 14px; border-radius: 14px;
    background: linear-gradient(135deg, #3a2f26, #57432f); color: #fff;
}
.psc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.psc-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; background: rgba(63, 157, 69, .22); color: #b8e6bb;
}
.psc-pill i { font-size: .45rem; }
.psc--trial .psc-pill { background: rgba(6, 182, 212, .2); color: #a5ecf7; }
.psc--warn .psc-pill { background: rgba(232, 163, 58, .24); color: #f6d39a; }
.psc--bad .psc-pill { background: rgba(226, 91, 58, .26); color: #ffc0ae; }
.psc--mute .psc-pill { background: rgba(255, 255, 255, .14); color: #e9dccd; }
.psc-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.psc-price small { font-weight: 500; font-size: .75rem; color: #d9c6ae; }
.psc-bar { height: 5px; margin: 12px 0 2px; border-radius: 9px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.psc-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #f1d3a6, #d4a574); }
.psc-line { margin-top: 8px; font-size: .82rem; line-height: 1.4; color: #e3d3c0; }
.psc-acts { display: flex; gap: 6px; margin-top: 12px; }
.psc-btn {
    flex: 1 1 0; min-width: 0; min-height: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 6px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .13); color: #fff;
    font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .12s;
}
.psc-btn i { font-size: .78rem; }
.psc-btn:hover, .psc-btn:focus-visible { background: rgba(255, 255, 255, .24); outline: none; }
.psc-btn:focus-visible { box-shadow: 0 0 0 2px #e0b98a; }
.psc-btn.is-primary { background: linear-gradient(135deg, #f1d3a6, #d4a574); color: #2b231d; }
.psc-btn.is-primary:hover { background: linear-gradient(135deg, #f6dfbd, #dcb084); }
.psc--load { display: flex; flex-direction: column; gap: 9px; }
.psc--load span { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); animation: psc-pulse 1.1s ease-in-out infinite; }
.psc--load span:nth-child(1) { width: 45%; }
.psc--load span:nth-child(3) { width: 70%; }
@keyframes psc-pulse { 50% { opacity: .45; } }

/* ---- лист отдолу (телефон и таблет): същото меню, преместено в body */
.pm-scrim { position: fixed; inset: 0; z-index: 1340; background: rgba(43, 35, 29, .45); }
.pm-scrim[hidden] { display: none; }
.hdr-menu.is-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1350;
    width: auto; max-width: 520px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; animation: pm-sheet .2s ease-out;
}
.hdr-menu.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 2px auto 8px; border-radius: 4px; background: #e6d8c8; }
@keyframes pm-sheet { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.header .header-user-info[data-account-menu] { cursor: pointer; }
.mobile-account-btn {
    margin: 20px 20px 0; width: calc(100% - 40px); padding: 14px 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid #efe4d8; border-radius: 10px; background: #fbf4ec; color: #3f3328;
    font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.mobile-account-btn i { color: #a8743f; }

/* ---- малките прозорци (account-dialogs.js) */
.acc-dlg { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgba(43, 35, 29, .45); }
.acc-dlg[hidden] { display: none; }
body.acc-dlg-open { overflow: hidden; }
.acc-box {
    width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 22px; border-radius: 20px; background: #fff; color: #3f3328;
    box-shadow: 0 30px 80px rgba(43, 35, 29, .4); animation: pm-in .16s ease-out;
}
.acc-box.wide { width: min(620px, 100%); }
.acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.acc-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #f3e6d6; color: #a8743f; display: grid; place-items: center; }
.acc-head h2 { flex: 1; margin: 0; font-size: 1.15rem; color: #2b231d; }
.acc-x { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: #fbf4ec; color: #5a4a3a; cursor: pointer; }
.acc-x:hover { background: #f3e6d6; }
.acc-form .field-group { margin-bottom: 12px; }
.acc-hint { margin: 0 0 14px; font-size: .82rem; color: #8a7866; }
/* Превключвател „показвай“ (Заглавие и дата на менюто) - истински checkbox с role=switch, значи работи с клавиатура и четец */
.acc-switch { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #efe4d8; border-radius: 14px; background: #fdf8f2; font-weight: 700; cursor: pointer; }
.acc-switch span { flex: 1; }
.acc-switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: #d9cdbf; cursor: pointer; transition: background .15s; }
.acc-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(43, 35, 29, .3); transition: transform .15s; }
.acc-switch input:checked { background: #a24630; }
.acc-switch input:checked::after { transform: translateX(18px); }
.acc-switch input:focus-visible { outline: 3px solid #e0b98a; outline-offset: 2px; }
.acc-sub { margin: -4px 0 12px; padding-left: 14px; border-left: 3px solid #f3e6d6; }
.acc-sub[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .acc-switch input, .acc-switch input::after { transition: none; } }
.acc-foot { display: flex; justify-content: flex-end; gap: 8px; }
.acc-btn {
    min-height: 0; padding: 11px 18px; border: 0; border-radius: 11px;
    background: #3a2f26; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.acc-btn:hover { background: #2b231d; }
.acc-btn.ghost { background: #fbf4ec; color: #3f3328; }
.acc-btn.ghost:hover { background: #f3e6d6; }
.acc-btn:disabled { opacity: .6; cursor: wait; }
.acc-btn:focus-visible, .acc-x:focus-visible { outline: 3px solid #e0b98a; outline-offset: 2px; }
/* Картата на алергените носи собствено заглавие и рамка - прозорецът вече ги има */
.acc-allergens .allergen-settings-card { padding: 0; border: 0; box-shadow: none; background: none; }
.acc-allergens .allergen-settings-card > .card-header { display: none; }
/* Фактури: последната е отделна топла карта, предишните са по 4 с пагинация */
.acc-invoices { display: flex; flex-direction: column; gap: 18px; }
.acc-inv-label { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a8743f; }
.acc-inv-latest { padding: 14px 16px 16px; border: 1px solid #ead6bd; border-radius: 16px; background: linear-gradient(180deg, #fdf6ee, #fbf0e3); }
.acc-inv-latest .invoice-row { padding: 2px 0 0; border-bottom: 0; }
.acc-inv-latest .invoice-icon { width: 46px; height: 46px; border-radius: 13px; background: #3a2f26; color: #f1d3a6; font-size: 1.1rem; }
.acc-inv-latest .invoice-number { font-size: 1.08rem; }
.acc-inv-latest .invoice-amount { font-size: 1.3rem; }
.acc-inv-latest .invoice-download-btn { border-color: #3a2f26; background: #3a2f26; color: #fff; }
.acc-inv-latest .invoice-download-btn i { color: #f1d3a6; }
.acc-inv-latest .invoice-download-btn:hover { background: #2b231d; }
.acc-inv-prev .acc-inv-label { color: #8a7866; padding: 0 4px; }
.acc-inv-prev .invoice-row { padding: 11px 4px; }
.acc-inv-prev .invoice-icon { width: 34px; height: 34px; border-radius: 10px; }
.acc-inv-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #f1e8de; }
.acc-inv-count { font-size: .82rem; color: #8a7866; white-space: nowrap; }
.acc-inv-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.acc-inv-nav .invoices-page-btn { min-width: 34px; min-height: 0; height: 34px; padding: 0 8px; border: 1px solid #efe4d8; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.acc-inv-nav .invoices-page-btn:disabled { opacity: .4; cursor: default; }
.acc-inv-nav .invoices-page-btn:focus-visible { outline: 3px solid #e0b98a; outline-offset: 1px; }
.acc-inv-gap { padding: 0 2px; color: #8a7866; }
@media (max-width: 640px) {
    .acc-inv-latest { padding: 12px 12px 14px; }
    .acc-inv-latest .invoice-row { gap: 12px; }
    .acc-inv-latest .invoice-icon { width: 40px; height: 40px; }
    .acc-inv-latest .invoice-number { font-size: 1rem; white-space: nowrap; }
    .acc-inv-latest .invoice-amount { font-size: 1.12rem; }
    .acc-inv-count { font-size: .76rem; }
}
.acc-empty { padding: 26px 0; text-align: center; color: #8a7866; }
.acc-empty i { font-size: 1.8rem; color: #d4a574; }

@media (pointer: coarse) {
    .psc-btn { min-height: 44px; }
    .acc-btn, .acc-x { min-height: 44px; }
    .acc-x { width: 44px; }
    .acc-inv-nav .invoices-page-btn { min-width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .hdr-menu.is-sheet, .acc-box { animation: none; }
    .psc--load span { animation: none; }
}

/* ---- превключвател в менюто (05.10.2026): „Класически генератор" - uiPrefs.generator_ui */
.pm-label[hidden], .pm-switch[hidden] { display: none; }
.pm-toggle {
    flex: none; position: relative; width: 38px; height: 22px; margin-left: auto; border-radius: 999px;
    background: #e2d3c2; transition: background .15s;
}
.pm-toggle::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s;
}
.pm-switch[aria-checked="true"] .pm-toggle { background: #3a2f26; }
.pm-switch[aria-checked="true"] .pm-toggle::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .pm-toggle, .pm-toggle::after { transition: none; } }

/* ==========================================================================
   Хамбургер менюто на телефон: компактен лист „Още“ (06.10.2026, вариант В)
   Пада от горе, не е цял екран. Табовете от долната лента не се повтарят
   (navigation.js `generateMobileNavTabs`), остава „Още“ + профил + помощ + изход.
   ❗ Идовете mobileNav / mobileNavOverlay / mobileUser* / mobileNavigationTabs
   се ползват от navigation.js и auth.js - не ги преименувай.
   ========================================================================== */
@media (max-width: 1023px) {
    .mobile-nav {
        display: block; visibility: hidden;
        top: 0; left: 0; right: 0; width: auto; max-width: 520px; margin: 0 auto;
        height: auto; max-height: 100vh; max-height: 100dvh; overflow-y: auto;
        border-radius: 0 0 22px 22px; background: #fff;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
        transform: translateY(-105%);
        transition: transform .26s ease, visibility 0s linear .26s;
        padding: 0 0 14px;
    }
    .mobile-nav.active { right: 0; transform: none; visibility: visible; transition: transform .26s ease; }

    /* глава: същият тъмен вид като хедъра */
    .mobile-nav .mobile-nav-header {
        margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 0 0 15px 15px;
        background: linear-gradient(180deg, #3a2f26, #2b231d); box-shadow: none;
    }
    .mobile-nav .logo-section { gap: 10px; margin: 0; }
    .mobile-nav .logo { width: 44px; height: 44px; }
    .mobile-nav .logo-text h1 {
        font-size: 1.5rem; line-height: 1.1;
        background: linear-gradient(135deg, #f1d3a6, #d4a574); -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .mobile-nav .mobile-nav-close {
        width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; padding: 0;
        background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #f1d3a6;
    }
    .mobile-nav .mobile-nav-close:hover { background: rgba(255, 255, 255, .18); transform: none; color: #fff; }

    /* кой си */
    .mobile-nav .mobile-user-info {
        margin: 0 12px; padding: 12px; gap: 12px; border-radius: 16px; border: 0;
        background: linear-gradient(135deg, #3a2f26, #57432f); box-shadow: none;
    }
    .mobile-nav .mobile-user-avatar { width: 44px; height: 44px; font-size: 1.1rem; color: #3a2f26; border: 0; }
    .mobile-nav .mobile-user-name { font-size: 1rem; font-weight: 800; color: #fff; }
    .mobile-nav .mobile-user-role { display: block; font-size: .8rem; color: #e3d4c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-nav .mobile-user-status {
        flex: none; padding: 5px 10px; border-radius: 999px; font-size: .74rem;
        background: rgba(63, 157, 69, .22); color: #b8e6bb;
    }
    .mobile-nav .mobile-user-status i { font-size: 6px; }

    .mn-label { margin: 14px 16px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8a7866; }

    /* „Още“ - решетка 2 колони */
    .mobile-nav .mobile-nav-tabs {
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; margin: 0;
    }
    .mobile-nav .mobile-nav-tab {
        min-height: 48px; padding: 10px 12px; gap: 10px; border-radius: 13px; background: #fbf4ec;
        border: 1px solid #efe4d8; color: #2b231d; font-weight: 700; font-size: .9rem; box-shadow: none;
        line-height: 1.2;
    }
    .mobile-nav .mobile-nav-tab .icon { width: 18px; text-align: center; color: #a8743f; flex: none; }
    .mobile-nav .mobile-nav-tab:hover { background: #f3e6d6; }
    .mobile-nav .mobile-nav-tab.active { background: linear-gradient(135deg, #f1d3a6, #d4a574); border-color: transparent; color: #2b231d; }
    .mobile-nav .mobile-nav-tab.active .icon { color: #2b231d; }

    /* помощ */
    .mn-help { margin: 0 12px; padding: 12px; border: 1px solid #efe4d8; border-radius: 16px; background: #fbf4ec; }
    .mn-pp { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
    .mn-pp b { font-size: .92rem; color: #2b231d; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mn-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
    .mn-av--ini { display: grid; place-items: center; background: #f3e6d6; color: #8a5a22; font-weight: 800; }
    .mn-viber {
        margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
        border-radius: 11px; background: #7b519d; color: #fff; text-decoration: none; font-weight: 800; font-size: .95rem;
    }
    .mn-viber:active { background: #8d62b0; }
    .mn-viber img { display: block; width: 20px; height: 20px; }
    .mn-videos {
        margin-top: 8px; width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
        border: 1px solid #efe4d8; border-radius: 12px; background: #fff; color: #2b231d; font: inherit; font-weight: 800; cursor: pointer;
    }
    .mn-videos i { color: #a8743f; }

    /* изход - тихо, не червен блок */
    .mobile-nav .mobile-exit-btn {
        margin: 12px 12px 0; width: calc(100% - 24px); min-height: 48px; padding: 12px; border-radius: 12px;
        background: #fff; color: #b3261e; border: 1px solid #efe4d8; box-shadow: none; font-weight: 800;
    }
    .mobile-nav .mobile-exit-btn:hover { background: #fdf3f2; transform: none; box-shadow: none; }
}

/* ==========================================================================
   Долна лента на телефон и таблет: тъмна, вариант А (06.10.2026)
   Огледало на тъмния хедър и на листа „Още“. Активният е златна плочка.
   Височината остава около 80px - export-dock (88px) и дигиталното меню (96px)
   са подредени над нея.
   ========================================================================== */
@media (max-width: 1023px) {
    .bottom-nav {
        background: linear-gradient(180deg, #3a2f26, #2b231d);
        border-top: 0; border-radius: 20px 20px 0 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px rgba(40, 24, 10, .3);
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .bottom-nav-container { padding: 0; gap: 6px; max-width: 560px; }
    .bottom-nav-item {
        flex: 1; min-width: 0; min-height: 56px; padding: 7px 4px; gap: 3px; border-radius: 14px;
        color: #b9a48e;
    }
    .bottom-nav-item:hover, .bottom-nav-item:focus { color: #f1d3a6; background: rgba(255, 255, 255, .08); }
    .bottom-nav-item.active { color: #2b231d; background: linear-gradient(135deg, #f1d3a6, #d4a574); }
    .bottom-nav-item.active::before { display: none; }
    .bottom-nav-icon { font-size: 1.15rem; margin-bottom: 0; }
    .bottom-nav-label { font-size: .7rem; font-weight: 700; }
    .bottom-nav-item.locked .bottom-nav-label { color: #8a7866; }
    .bottom-nav-item.locked .lock-icon { color: #8a7866; }
}

/* Админ панел (07.10.2026): бутон в хедъра на десктоп, на телефон е ред в менюто на профила */
.hdr-admin-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #f1d3a6;
    font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.hdr-admin-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hdr-admin-btn[hidden] { display: none; }
@media (max-width: 821px) { .hdr-admin-btn { display: none !important; } }
.pm-item .pm-tail-ico { margin-left: auto; font-size: .75rem; color: #a08c77; }

/* Режим на поддръжка (07.10.2026) */
.support-bar {
    position: sticky; top: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 14px; background: #b3261e; color: #fff; font-size: .86rem; font-weight: 600; text-align: center;
}
.support-bar button { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.support-bar button:hover { background: rgba(255, 255, 255, .15); }
