:root {
    --bg-main: #03060c;
    --bg-cosmos-deep: #050912;
    --bg-card: rgba(11, 17, 30, 0.88);
    --bg-elevated: rgba(18, 27, 45, 0.85);
    --bg-input: rgba(8, 13, 24, 0.92);
    --bg-header: rgba(3, 6, 12, 0.72);
    --bg-sidebar: rgba(6, 11, 22, 0.96);
    --bg-modal-panel: #0b1220;
    --bg-modal-box: #070d18;
    --border-color: rgba(148, 163, 184, 0.18);
    --border-glow: #38bdf8;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-blue: #0052ff;
    --accent-blue-hover: #0284c7;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.52);
    --header-height: 62px;
}

html[data-theme="light"] {
    --bg-main: #f4f7fb;
    --bg-cosmos-deep: #eaf0f8;
    --bg-card: #ffffff;
    --bg-elevated: #eef2f8;
    --bg-input: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.92);
    --bg-sidebar: rgba(255, 255, 255, 0.98);
    --bg-modal-panel: #ffffff;
    --bg-modal-box: #f1f5f9;
    --border-color: #dbe3ef;
    --border-glow: #0052ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-primary: #0052ff;
    --accent-cyan: #0284c7;
    --accent-blue: #0052ff;
    --accent-blue-hover: #003ecb;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-red: #ef4444;
    --accent-yellow: #d97706;
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body {
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ================= КОСМІЧНИЙ ФОН У СТИЛІ LUMORA (ЗІРКОВИЙ ПИЛ + НАСИЧЕНІ ТУМАННОСТІ, БЕЗ ЛІНІЙ ТА СІТОК) ================= */
.cosmic-sky-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 62% at 50% 42%, rgba(16, 42, 86, 0.72) 0%, rgba(7, 17, 38, 0.88) 48%, #03060f 100%),
        radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 88% 82%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
        #03060f;
    transition: opacity 0.35s ease;
}

html[data-theme="light"] .cosmic-sky-bg {
    opacity: 0;
}

.cosmic-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cosmic-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(86px);
    will-change: transform, opacity;
    pointer-events: none;
}

.cosmic-nebula-tr {
    top: -170px;
    right: -130px;
    width: 720px;
    height: 640px;
    background: radial-gradient(
        circle at 46% 46%,
        rgba(125, 211, 252, 0.34) 0%,
        rgba(34, 211, 238, 0.22) 34%,
        rgba(37, 99, 235, 0.14) 62%,
        transparent 80%
    );
    animation: cosmicNebulaDriftTR 22s ease-in-out infinite alternate;
}

.cosmic-nebula-bl {
    bottom: -190px;
    left: -150px;
    width: 760px;
    height: 660px;
    background: radial-gradient(
        circle at 54% 52%,
        rgba(56, 189, 248, 0.32) 0%,
        rgba(45, 212, 191, 0.20) 36%,
        rgba(29, 78, 216, 0.15) 64%,
        transparent 82%
    );
    animation: cosmicNebulaDriftBL 26s ease-in-out infinite alternate;
}

@keyframes cosmicNebulaDriftTR {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
    }
    50% {
        transform: translate3d(-34px, 26px, 0) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translate3d(18px, -16px, 0) scale(0.96);
        opacity: 0.84;
    }
}

@keyframes cosmicNebulaDriftBL {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.76;
    }
    50% {
        transform: translate3d(38px, -28px, 0) scale(1.07);
        opacity: 0.98;
    }
    100% {
        transform: translate3d(-16px, 20px, 0) scale(0.95);
        opacity: 0.82;
    }
}

/* ================= БЛОК 0. ВЕРХНЯ ШАПКА САЙТУ В СТИЛІ LUMORA ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    min-height: var(--header-height);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
    width: 100%;
    height: 100%;
    min-height: var(--header-height);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Ліва група: мінімалістичний логотип 3pay.shop + основна навігація ПК */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    min-width: 0;
}

.header-main-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.header-nav-link:hover {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.1);
}

.header-nav-link.is-active {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.36);
}

html[data-theme="light"] .header-nav-link.is-active {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.42);
}

.header-orders-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
}

/* Єдина преміальна кнопка налаштувань «🎛️ Параметри» та випадаючий поповер (?v=210_3) */
.header-params-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-params-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.16s ease;
}

.header-params-trigger-btn:hover,
.header-params-wrap.is-open .header-params-trigger-btn {
    border-color: var(--accent-primary);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

.hdr-params-ico {
    font-size: 0.94rem;
    line-height: 1;
}

.hdr-params-mini-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.24);
    font-size: 0.72rem;
    line-height: 1;
}

html[data-theme="light"] .hdr-params-mini-group {
    background: #eef6ff;
    border-color: #bfdbfe;
}

.hdr-params-mini-lang {
    font-weight: 900;
    font-size: 0.66rem;
    color: var(--accent-primary);
    letter-spacing: 0.3px;
}

.header-params-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 316px;
    max-width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-modal-panel);
    border: 1px solid rgba(56, 189, 248, 0.34);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.62);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

html[data-theme="light"] .header-params-popover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hdr-params-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.hdr-params-pop-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--text-primary);
}

.hdr-params-pop-close {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hdr-params-pop-close:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.hdr-params-pop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hdr-params-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.hdr-params-row-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.hdr-params-row-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hdr-params-row-sub {
    font-size: 0.69rem;
    color: var(--text-secondary);
    line-height: 1.25;
}

.hdr-params-action-btn,
.hdr-params-locale-btn {
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.38rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.92;
    transform: translateY(-0.5px);
}

.brand-accent {
    color: var(--accent-primary);
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.38);
}

html[data-theme="light"] .brand-accent {
    text-shadow: none;
}

.brand-domain {
    color: var(--text-primary);
}

/* Права панель управління шапки (суворо 6 елементів у ряд за ТЗ) */
.header-right-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 1. Синя кнопка «Реєстрація / Вхід» */
.header-auth-blue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.72);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-auth-blue-btn:hover {
    transform: translateY(-1px);
    border-color: #ffffff;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.52);
}

/* Коли користувач авторизований — синя кнопка «Реєстрація / Вхід» суворо прихована */
body.is-user-authenticated .header-auth-blue-btn {
    display: none !important;
}

/* 2–3. Плашки «🔊 Звук» та «🌙 Темна» */
.sound-toggle-btn,
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sound-toggle-btn:hover,
.theme-toggle-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
}

.sound-toggle-btn.is-active {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--accent-green);
}

.sound-toggle-btn.is-muted {
    background: var(--bg-elevated);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.sound-toggle-icon,
.theme-icon {
    font-size: 0.92rem;
    line-height: 1;
}

/* 4. Плашка локалі та валюти «UA uk-UA | UAH ₴» */
.locale-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.locale-flag {
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 0.4px;
}

.locale-code {
    color: var(--text-primary);
}

.locale-sep {
    color: var(--text-muted);
}

.locale-fiat {
    color: var(--accent-green);
}

/* 5. Індикатор статусу «● Гість» та інтерактивне меню авторизованого профілю */
.header-account-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-user-panel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.header-account-trigger {
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-account-trigger:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.header-user-panel.is-authenticated {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.58);
    color: #ecfdf5;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .header-user-panel.is-authenticated {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.55);
    color: #065f46;
}

.header-user-panel.is-authenticated:hover,
.header-user-panel.is-menu-open {
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.36);
}

.header-username {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-chevron-svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.header-user-panel.is-menu-open .account-chevron-svg {
    transform: rotate(180deg);
}

.header-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 236px;
    max-width: calc(100vw - 24px);
    padding: 8px;
    border-radius: 14px;
    background: rgba(8, 14, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72), 0 0 18px rgba(56, 189, 248, 0.16);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1150;
}

html[data-theme="light"] .header-account-menu {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.account-menu-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-menu-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-email {
    font-size: 0.74rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-item {
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.account-menu-item:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--accent-primary);
}

.account-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 2px;
}

.account-menu-item.is-danger {
    color: #f87171;
}

html[data-theme="light"] .account-menu-item.is-danger {
    color: #dc2626;
}

.account-menu-item.is-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

.online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    flex-shrink: 0;
}

/* 5.5. Іконка чату Великого Олежки у шапці (суворо зліва від бургер-меню ≡) + розумний бейдж повідомлень */
.header-chat-btn {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.header-chat-btn:hover,
.header-chat-btn.is-active {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-primary);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.24);
}

html[data-theme="light"] .header-chat-btn:hover,
html[data-theme="light"] .header-chat-btn.is-active {
    background: rgba(0, 82, 255, 0.1);
    border-color: rgba(0, 82, 255, 0.45);
    color: #0052ff;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.14);
}

.header-chat-svg {
    width: 19px;
    height: 19px;
    display: block;
    flex-shrink: 0;
}

.header-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #526582;
    color: #f8fafc;
    border: 1.5px solid #0b1220;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.48);
    transition: background-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

html[data-theme="light"] .header-chat-badge {
    background: #64748b;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.header-chat-badge.is-unread {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.72);
    animation: headerChatUnreadPulse 1.8s ease-in-out infinite;
}

html[data-theme="light"] .header-chat-badge.is-unread {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.48);
}

@keyframes headerChatUnreadPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 6. Кнопка бургер-меню ≡ */
.sidebar-burger-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 10px 9px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-burger-btn:hover,
.sidebar-burger-btn.is-active {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.burger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.sidebar-burger-btn.is-active .burger-line {
    background: var(--accent-primary);
}

/* ================= ОРИГІНАЛЬНИЙ ДЗВІНОЧОК ЦЕНТРУ СПОВІЩЕНЬ (ПРИХОВАНИЙ ЛИШЕ НА ГОЛОВНІЙ СТОРІНЦІ LUMORA) ================= */
.wallet-bell-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

body.is-home-view .wallet-bell-wrapper {
    display: none !important;
}

.wallet-bell-wrapper:hover {
    transform: scale(1.06);
}

.bell-svg-large {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 8px rgba(0, 82, 255, 0.35));
    transform-origin: top center;
}

html[data-theme="light"] .bell-svg-large {
    filter: drop-shadow(0 1px 2px rgba(0, 82, 255, 0.22));
}

.bell-svg-dome {
    fill: transparent;
    stroke: url(#headerBellGradient);
    stroke-width: 2.4px;
    transition: fill 0.22s ease, stroke-width 0.22s ease;
}

.wallet-bell-wrapper.has-unread-mail .bell-svg-dome {
    fill: url(#headerBellGradient);
    stroke: none;
}

.bell-svg-clapper {
    fill: #38bdf8;
    transition: fill 0.22s ease;
}

html[data-theme="light"] .bell-svg-clapper {
    fill: #0f172a;
}

.wallet-bell-wrapper.ringing .bell-svg-large {
    animation: ringSmoothBell 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.85));
}

@keyframes ringSmoothBell {
    0% { transform: rotate(0); }
    15% { transform: rotate(28deg); }
    30% { transform: rotate(-24deg); }
    45% { transform: rotate(18deg); }
    60% { transform: rotate(-14deg); }
    75% { transform: rotate(9deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

.bell-dot-large {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 11px;
    height: 11px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3b30;
    z-index: 3;
    border: 2px solid #061014;
    animation: pulseRedDot 2s infinite;
}

html[data-theme="light"] .bell-dot-large {
    border-color: #ffffff;
}

.wallet-bell-wrapper.periodic-swing .bell-svg-large {
    animation: periodicSwing 0.8s ease-in-out infinite alternate;
}

@keyframes periodicSwing {
    0% { transform: rotate(14deg); }
    100% { transform: rotate(-14deg); }
}

.music-note {
    position: fixed;
    top: 26px;
    right: 70px;
    font-size: 18px;
    pointer-events: none;
    z-index: 9999;
    animation: flyNote 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
    color: #38bdf8;
}

@keyframes flyNote {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 1; }
    100% { transform: translate(-72px, 68px) scale(1.4) rotate(-38deg); opacity: 0; }
}

/* ================= ЧИСТЕ ВИСУВНЕ БУРГЕР-МЕНЮ ≡ СПРАВА ================= */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1080;
}

.app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    background: var(--bg-sidebar);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid var(--border-color);
    z-index: 1120;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

body.sidebar-drawer-open .app-sidebar {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.65);
}

.sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.01em;
}

.sidebar-brand-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.sidebar-pin-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-pin-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.sidebar-scroll-area {
    flex: 1;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.9px;
    padding: 0 8px;
    text-transform: uppercase;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-primary);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.16);
}

.sidebar-item-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-item-text {
    flex: 1;
}

/* Мобільна секція в бургер-меню (прихована на широких екранах, видима на смартфонах/планшетах) */
.sidebar-mobile-meta {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-mobile-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-locale-pill,
.sidebar-user-pill {
    width: 100%;
    justify-content: flex-start;
}

.sidebar-account-action-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.16s ease;
}

.sidebar-account-action-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.sidebar-account-action-btn.is-danger {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.55);
    color: #f87171;
}

html[data-theme="light"] .sidebar-account-action-btn.is-danger {
    color: #dc2626;
}

/* ================= СПЛИВАЮЧІ ТОСТИ-СПОВІЩЕННЯ ================= */
.toast-container {
    position: fixed;
    top: calc(var(--header-total-h, 130px) + 12px);
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 9998;
    width: 380px;
    max-width: calc(100vw - 28px);
    pointer-events: none;
    transition: top 0.2s ease;
}

.toast-message {
    width: 100%;
    background: linear-gradient(135deg, rgba(11, 18, 34, 0.96) 0%, rgba(5, 9, 18, 0.98) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: 14px 38px 18px 16px;
    color: #f8fafc;
    font-size: 0.86rem;
    line-height: 1.48;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72), 0 0 18px rgba(56, 189, 248, 0.14);
    pointer-events: auto;
    cursor: pointer;
    animation: toastSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.toast-message.toast-alert {
    border-left-color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
}

.toast-body-content {
    display: block;
    word-break: break-word;
}

.toast-close-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    z-index: 4;
}

.toast-close-x:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.toast-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    pointer-events: none;
}

.toast-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #22d3ee 0%, #0052ff 100%);
    transform-origin: left center;
}

.toast-highlight {
    color: #38bdf8;
    font-weight: 800;
}

html[data-theme="light"] .toast-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.98) 100%);
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .toast-message.toast-alert {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-color: #fecaca;
    border-left-color: #dc2626;
    color: #7f1d1d;
}

html[data-theme="light"] .toast-close-x {
    background: rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
    color: #475569;
}

html[data-theme="light"] .toast-close-x:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

html[data-theme="light"] .toast-progress-track {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .toast-highlight {
    color: #0284c7;
}

html[data-theme="light"] .toast-message.toast-new-order {
    background: linear-gradient(135deg, #065f46, #047857);
    border-color: #10b981;
    color: #ecfdf5;
}

html[data-theme="light"] .toast-message.toast-guest-res {
    background: linear-gradient(135deg, #92400e, #b45309);
    border-color: #f59e0b;
    color: #fffbeb;
}

.toast-message.fadeOut {
    animation: toastSlideOut 0.32s ease-in forwards;
}

.toast-message.flying-to-bell {
    animation: none !important;
    pointer-events: none;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2338bdf8'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    width: 54px !important;
    min-width: 54px !important;
    padding: 0 !important;
    margin-left: auto !important;
    display: block !important;
    overflow: visible !important;
}

.toast-message.flying-to-bell * {
    display: none !important;
    opacity: 0 !important;
}

@keyframes toastSlideIn {
    from { transform: translateX(115%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(115%); opacity: 0; }
}

@keyframes pulseRedDot {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ================= ЗАГАЛЬНІ МОДАЛЬНІ ВІКНА ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(3, 6, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.modal-content {
    background: linear-gradient(145deg, #070d19 0%, #0d1629 100%);
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 18px;
    padding: 26px 24px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 28px rgba(0, 82, 255, 0.2);
}

html[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--text-primary);
    transform: scale(1.08);
}

/* ================= 3 МОДАЛЬНІ ВІКНА ЦЕНТРУ СПОВІЩЕНЬ ДЗВІНОЧКА ================= */
.notif-modal-overlay {
    z-index: 10000;
}

.full-msg-modal-overlay {
    z-index: 10005;
}

.delete-confirm-modal-overlay {
    z-index: 10010;
}

.notifications-content {
    max-width: 540px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
}

.full-message-content {
    max-width: 540px;
}

.notif-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.full-msg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    margin-bottom: 16px;
}

.modal-title {
    margin-bottom: 14px;
    line-height: 1.4;
    text-align: center;
}

.notif-modal-title,
.full-msg-modal-title {
    margin-bottom: 0;
}

.warning-modal-title {
    color: #ef4444;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.brand-text {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--accent-primary);
}

.notifications-body {
    overflow-y: auto;
    max-height: 62vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #0284c7 transparent;
}

.empty-notifications {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 26px 0;
}

.notification-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
}

.notification-card.unread {
    border-left: 4px solid #ff3b30;
}

.notification-card.read {
    border-left: 4px solid #38bdf8;
    opacity: 0.78;
}

.notification-text-wrap {
    cursor: pointer;
}

.notification-text {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.notif-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.notif-btn.read-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.notif-btn.read-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.notif-btn.delete-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.full-msg-modal-body {
    max-height: 56vh;
    overflow-y: auto;
    text-align: center;
    padding: 4px 2px 14px;
}

.full-msg-envelope-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.full-message-text {
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;
}

.full-msg-footer {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.merchant-desc.msg-error {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
    margin-bottom: 18px;
}

.modal-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.submit-merchant-btn {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.18s ease;
}

.submit-merchant-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.submit-merchant-btn.btn-confirm-delete {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border-color: rgba(248, 113, 113, 0.7);
}

.submit-merchant-btn.btn-cancel-delete {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* ================= ОСНОВНИЙ КОНТЕЙНЕР ТА ПІДВАЛ ================= */
/* z-index: auto гарантує, що правий чат і модалки всередині сторінки не блокуються під шапкою */
.app-layout-shell {
    position: relative;
    z-index: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height));
}

.main-container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-color);
    background: var(--bg-header);
    padding: 20px 20px 24px;
    margin-top: auto;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.footer-copy {
    color: var(--text-primary);
    font-weight: 700;
}

/* ================= АДАПТИВНІСТЬ ШАПКИ ТА БУРГЕР-МЕНЮ (ПЛАНШЕТИ 768px+ ТА СМАРТФОНИ 360px+) ================= */
@media (max-width: 1180px) {
    .header-main-nav {
        display: none;
    }

    .sidebar-mobile-meta {
        display: flex;
    }
}

@media (max-width: 960px) {
    .header-inner {
        padding: 10px 16px;
        gap: 10px;
    }

    .header-desktop-only {
        display: none !important;
    }

    body:not(.is-user-authenticated) .header-account-wrap {
        display: none !important;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 56px;
    }

    .header-inner {
        padding: 0 12px;
        gap: 6px;
    }

    .brand-logo {
        font-size: 1.15rem;
    }

    .header-right-controls {
        gap: 5px;
    }

    .header-auth-blue-btn {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .header-params-trigger-btn {
        min-height: 34px;
        padding: 5px 9px;
        gap: 5px;
    }

    .hdr-params-label {
        display: none;
    }

    .header-params-popover {
        right: -46px;
        width: 292px;
    }

    .header-account-trigger {
        min-height: 34px;
        padding: 5px 10px;
        font-size: 0.74rem;
        gap: 5px;
    }

    .header-username {
        max-width: 96px;
    }

    .header-account-menu {
        min-width: 214px;
        right: -6px;
    }

    .header-params-popover .sound-toggle-label,
    .header-params-popover .theme-label {
        display: inline;
    }

    .header-params-popover .sound-toggle-btn,
    .header-params-popover .theme-toggle-btn {
        padding: 6px 11px;
        min-height: 34px;
        min-width: 86px;
        justify-content: center;
    }

    .sidebar-burger-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 8px 7px;
    }

    .header-chat-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .header-chat-svg {
        width: 17px;
        height: 17px;
    }

    .header-chat-badge {
        top: -4px;
        right: -4px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 0.62rem;
    }

    .toast-container {
        top: calc(var(--header-total-h, 126px) + 8px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 94%;
        max-width: 420px;
        align-items: center;
    }

    .toast-message {
        font-size: 0.8rem;
        padding: 12px 34px 15px 14px;
    }

    .main-container {
        padding: 0 12px;
    }

    .cosmic-nebula-tr {
        width: 320px;
        height: 300px;
        top: -90px;
        right: -90px;
    }

    .cosmic-nebula-bl {
        width: 340px;
        height: 310px;
        bottom: -100px;
        left: -100px;
    }
}

@media (max-width: 390px) {
    .header-inner {
        padding: 0 8px;
        gap: 4px;
    }

    .header-right-controls {
        gap: 4px;
    }

    .brand-logo {
        font-size: 0.98rem;
    }

    .header-auth-blue-btn {
        padding: 5px 8px;
        font-size: 0.68rem;
        min-height: 32px;
    }

    .header-params-trigger-btn {
        min-height: 32px;
        padding: 4px 7px;
        gap: 4px;
    }

    .hdr-params-mini-group {
        display: none;
    }

    .header-params-popover {
        position: fixed;
        top: 112px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }

    .header-account-trigger {
        padding: 5px 8px;
        font-size: 0.68rem;
        min-height: 32px;
    }

    .header-username {
        max-width: 68px;
    }

    .sidebar-burger-btn {
        min-width: 32px;
        width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 6px;
    }

    .header-chat-btn {
        min-width: 32px;
        width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0;
    }

    .header-chat-svg {
        width: 16px;
        height: 16px;
    }
}

/* ================= ШВИДКИЙ МІКРОФОН У ВЕРХНІЙ ШАПЦІ ТА ПАНЕЛЬ ПЛАШОК ПІД ШАПКОЮ ================= */
.header-quick-mic-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.18) 0%, rgba(56, 189, 248, 0.18) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
    transition: all 0.2s ease;
}

.header-quick-mic-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
}

.header-quick-mic-btn.is-recording,
.floating-orb-satellite-mic.is-recording {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.8) !important;
    animation: pulseRedDot 1.1s infinite;
}

/* ================= БЛОК 0.1. НАСКРІЗНИЙ ПЛАВАЮЧИЙ КРУГЛЯШОК ІІ-АДВОКАТА ОЛЕЖКИ ================= */
/* Скорреговано вертикальний відступ знизу, щоб кругляшок ніколи не перекривав посилання «Хочу стати P2P-партнером» */
.floating-olezhka-root {
    position: fixed;
    right: 22px;
    bottom: 68px;
    z-index: 9985;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.floating-olezhka-root.has-custom-pos {
    right: auto;
    bottom: auto;
}

/* ?v=210_4_3: У кімнаті ордера плаваючий кругляшок Маленького Олежки (⏳ 30:00) не перекриває кнопки «🌐 UA | 🌐 EN» та «Надіслати ➤» */
body.is-order-room-active .floating-olezhka-root:not(.has-custom-pos) {
    bottom: 138px;
    right: 16px;
}

.floating-olezhka-root.user-dismissed,
body.right-chat-open .floating-olezhka-root,
body.stage-modal-open .floating-olezhka-root,
body.has-faceid-scanner-open .floating-olezhka-root {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.76);
}

.floating-olezhka-orb-wrap {
    position: relative;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-olezhka-orb-btn {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    background: radial-gradient(circle at 30% 30%, #16243d 0%, #0b0e14 85%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72), 0 0 18px rgba(56, 189, 248, 0.45);
    cursor: grab;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.floating-olezhka-orb-btn:active {
    cursor: grabbing;
}

.floating-olezhka-orb-btn:hover {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.75);
}

/* Кнопка-супутник швидкого мікрофона 🎙️ біля кругляшка Олежки */
.floating-orb-satellite-mic {
    position: absolute;
    left: -14px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.65);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-orb-satellite-mic:hover {
    transform: scale(1.14);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.floating-orb-glow-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(56, 189, 248, 0.55);
    animation: floatingOrbSpin 12s linear infinite;
    pointer-events: none;
}

@keyframes floatingOrbSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-orb-avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.floating-orb-avatar-img {
    width: 125%;
    height: 125%;
    object-fit: cover;
    object-position: center 8%;
    pointer-events: none;
}

.floating-orb-live-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0b0e14;
    box-shadow: 0 0 8px #10b981;
}

.floating-orb-timer-mini {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.8);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Хрестик закриття плаваючого кругляшка зверху */
.floating-olezhka-kill-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.floating-olezhka-kill-btn:hover {
    background: #dc2626;
    transform: scale(1.12);
}

/* Розгорнута панель діалогу плаваючого ІІ-Адвоката Олежки */
.floating-olezhka-panel {
    width: 396px;
    max-width: calc(100vw - 20px);
    height: 520px;
    max-height: calc(100vh - 108px);
    background: var(--bg-card);
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.82), 0 0 26px rgba(0, 82, 255, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: pan-y;
    user-select: text;
    -webkit-user-select: text;
}

/* Двоповерхова шапка вікна чату без накладання тексту */
.floating-panel-header {
    background: linear-gradient(135deg, #0f172a 0%, #111c33 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.32);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: move;
    user-select: none;
}

.floating-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.floating-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.floating-header-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #38bdf8;
    background: #0b0e14;
    overflow: hidden;
    flex-shrink: 0;
}

.floating-header-avatar {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center 8%;
}

.floating-header-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0b0e14;
}

.floating-header-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    flex: 1;
}

.floating-header-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-header-sub {
    font-size: 0.71rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-header-window-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.floating-header-icon-btn,
.floating-panel-min-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.floating-header-icon-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
}

.floating-panel-min-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #ffffff;
}

.floating-header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-timer-pill {
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.floating-timer-pill.is-expired {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    color: #f87171;
}

.floating-operator-top-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.8);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.floating-operator-top-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

/* Швидкі кнопки дій під шапкою віджета */
.floating-quick-bar {
    padding: 8px 10px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.floating-quick-chip {
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.floating-quick-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.floating-quick-chip.chip-shield {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
}

.floating-quick-chip.chip-audit {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--accent-primary);
}

/* Висувні панелі Налаштувань ШІ-Олежки та Шаблонів реквізитів */
.floating-settings-drawer,
.floating-templates-drawer {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 270px;
    overflow-y: auto;
}

.floating-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--accent-primary);
}

.floating-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.floating-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.floating-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.floating-field label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.floating-input,
.floating-select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.75rem;
}

.floating-settings-check-group {
    padding: 6px 8px;
    border-radius: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.floating-pins-checks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.floating-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.floating-save-tpl-btn {
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.65);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

/* Модуль оформлення Підписки на ІІ після 30 хвилин */
.floating-subscription-banner {
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.18) 0%, rgba(16, 185, 129, 0.14) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.45);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-sub-info strong {
    display: block;
    font-size: 0.78rem;
    color: var(--accent-primary);
    margin-bottom: 3px;
}

.floating-sub-info p {
    font-size: 0.71rem;
    color: var(--text-primary);
    line-height: 1.38;
}

.floating-sub-activate-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Стрічка повідомлень плаваючого чату */
.floating-messages-stream {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-main);
    scrollbar-width: thin;
    scrollbar-color: #0284c7 transparent;
}

.floating-msg {
    max-width: 92%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.floating-msg.is-ai {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-left: 3px solid #38bdf8;
    color: var(--text-primary);
}

.floating-msg.is-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.floating-msg-meta {
    font-size: 0.66rem;
    font-weight: 700;
    opacity: 0.78;
}

/* 4 кнопки відділів Служби Підтримки всередині відповіді Олежки */
.floating-dept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 4px;
}

.floating-dept-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 82, 255, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: var(--text-primary);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.18s ease;
}

.floating-dept-btn:hover {
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    color: #ffffff;
    border-color: #ffffff;
}

.floating-dept-online-pill {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 800;
}

/* Картка предпросмотру торгового доручення з кнопкою [ ✅ ПІДТВЕРДИТИ ТА ЗАПУСТИТИ ] */
.floating-trade-card {
    margin-top: 4px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.floating-trade-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 3px;
}

.floating-confirm-trade-btn {
    margin-top: 6px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.floating-confirm-trade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

/* Інтерактивний чек-лист статусів із БД PostgreSQL */
.floating-checklist-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.floating-check-tier {
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.floating-check-tier-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.floating-check-item {
    font-size: 0.72rem;
    padding: 2px 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

/* Інтерактивні кнопки «Навігатор за руку» у відповідях Олежки (компактно по 2 в ряд) */
.floating-nav-btns-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 4px;
}

.floating-nav-action-btn {
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--accent-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.18s ease;
}

.floating-nav-action-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: #ffffff;
}

/* Жива панель активного запису мікрофона над полем вводу */
.floating-voice-rec-bar {
    padding: 8px 10px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.16) 0%, rgba(0, 82, 255, 0.18) 100%);
    border-top: 1px solid rgba(239, 68, 68, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-rec-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseRedDot 1s infinite;
}

.floating-rec-status-text {
    flex: 1;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-rec-stop-send-btn {
    padding: 5px 10px;
    border-radius: 7px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.floating-rec-cancel-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

/* Нижня панель вводу (мікрофон + текст + відправка) */
.floating-input-bar {
    padding: 9px 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 7px;
}

.floating-mic-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid rgba(56, 189, 248, 0.45);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.floating-mic-btn.is-recording {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
    animation: pulseRedDot 1.2s infinite;
}

.floating-text-input {
    flex: 1;
    height: 38px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.floating-text-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.floating-send-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0052ff 0%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

/* Підсвічування цільового блоку при переході за кнопкою «Навігатор за руку» */
.olezhka-guided-highlight {
    box-shadow: 0 0 0 3px #38bdf8, 0 0 28px rgba(56, 189, 248, 0.65) !important;
    transition: box-shadow 0.35s ease !important;
}

/* ================= ГЛОБАЛЬНА ПАНЕЛЬ ПУЛЬСУ ПАРТНЕРА, РЕАКЦІЇ 👍/👎 ТА МОДАЛКА P2P-МЕТРИК (?v=206) ================= */
.partner-hb-alert-bar {
    position: sticky;
    top: 66px;
    z-index: 88;
    width: 100%;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.22));
    border-bottom: 1px solid rgba(245, 158, 11, 0.55);
    backdrop-filter: blur(12px);
}

.partner-hb-alert-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-hb-alert-text {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.partner-hb-alert-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.partner-hb-alert-link {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.65);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.partner-hb-alert-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 800;
}

/* Інтерактивні кнопки 👍 / 👎 на торговця */
.p2p-react-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p2p-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.p2p-react-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.p2p-react-btn.is-like.is-active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #34d399;
}

.p2p-react-btn.is-dislike.is-active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

html[data-theme="light"] .p2p-react-btn.is-like.is-active {
    color: #047857;
}

html[data-theme="light"] .p2p-react-btn.is-dislike.is-active {
    color: #b91c1c;
}

.partner-metrics-trigger {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partner-metrics-trigger:hover strong {
    color: #38bdf8;
    text-decoration: underline;
}

/* Модальне вікно детальних P2P-метрик партнера */
.partner-metrics-modal-card {
    width: min(560px, 95vw);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px;
}

.partner-metrics-modal-header {
    align-items: center;
    gap: 12px;
}

.pm-modal-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pm-modal-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pm-modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pm-modal-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pm-modal-username {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-primary);
}

.pm-modal-voice-badge {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
}

html[data-theme="light"] .pm-modal-voice-badge {
    color: #047857;
}

.pm-modal-status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pm-modal-status-pill.is-online {
    color: #34d399;
}

html[data-theme="light"] .pm-modal-status-pill.is-online {
    color: #059669;
}

.partner-metrics-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pm-modal-reactions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
}

.pm-modal-pos-pill {
    font-size: 0.84rem;
    font-weight: 800;
    color: #34d399;
}

html[data-theme="light"] .pm-modal-pos-pill {
    color: #059669;
}

.pm-metrics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pm-kpi-cell {
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-kpi-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pm-kpi-num {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-primary);
}

.pm-reviews-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-reviews-heading {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pm-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.pm-review-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.pm-review-item-head strong {
    color: var(--text-primary);
}

.pm-review-item-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.pm-reviews-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

@media (max-width: 680px) {
    .pm-metrics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-hb-alert-inner {
        padding: 8px 12px;
    }

    .site-footer {
        padding-bottom: 92px;
    }

    .quick-mic-label {
        display: none;
    }

    .floating-olezhka-root {
        right: 12px;
        bottom: 54px;
    }

    body.is-order-room-active .floating-olezhka-root:not(.has-custom-pos) {
        right: 10px;
        bottom: 142px;
    }

    .floating-olezhka-orb-wrap {
        width: 56px;
        height: 56px;
    }

    .floating-olezhka-orb-btn {
        width: 52px;
        height: 52px;
    }

    .floating-orb-satellite-mic {
        left: -10px;
        top: 2px;
        width: 26px;
        height: 26px;
        font-size: 0.76rem;
    }

    .floating-olezhka-kill-btn {
        top: -5px;
        right: -5px;
        width: 20px;
        height: 20px;
        font-size: 0.62rem;
    }

    .floating-orb-timer-mini {
        font-size: 0.56rem;
        padding: 1px 6px;
        bottom: -9px;
    }

    .wallet-bell-wrapper {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .bell-svg-large {
        width: 28px;
        height: 28px;
    }

    .floating-olezhka-panel {
        width: calc(100vw - 16px);
        height: 74vh;
        max-height: calc(100vh - 82px);
    }

    .floating-drawer-grid,
    .floating-pins-checks-grid,
    .floating-nav-btns-wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   БЛОКИ 2–3 (?v=207): ВІДЖЕТ «ОРДЕРИ ▾» (BINANCE-STYLE) + ТОСТИ З КНОПКОЮ +
   ОФІЦІЙНА ВЕРИФІКОВАНА КВИТАНЦІЯ З QR-РЕЄСТРОМ І ДРУКОМ PDF
   ========================================================================= */

.header-orders-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-orders-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
    white-space: nowrap;
}

body.theme-light .header-orders-trigger-btn {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-orders-trigger-btn:hover,
.header-orders-dropdown-wrap.is-open .header-orders-trigger-btn {
    border-color: rgba(56, 189, 248, 0.72);
    background: rgba(30, 58, 138, 0.45);
}

body.theme-light .header-orders-trigger-btn:hover,
body.theme-light .header-orders-dropdown-wrap.is-open .header-orders-trigger-btn {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.header-orders-caret {
    font-size: 0.72rem;
    opacity: 0.8;
    transition: transform 0.18s ease;
}

.header-orders-dropdown-wrap.is-open .header-orders-caret {
    transform: rotate(180deg);
}

.header-orders-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 372px;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 22px 54px rgba(2, 6, 23, 0.32), 0 6px 18px rgba(15, 23, 42, 0.12);
    z-index: 1200;
    overflow: hidden;
    animation: hoPopoverFadeIn 0.16s ease-out;
}

@keyframes hoPopoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ho-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
}

.ho-popover-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.ho-popover-all-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.ho-popover-all-link:hover {
    text-decoration: underline;
}

.ho-popover-body {
    max-height: 440px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.ho-order-card {
    display: block;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.ho-order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.ho-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ho-dir-label {
    font-size: 0.86rem;
    font-weight: 800;
}

.ho-dir-label.is-buy {
    color: #059669;
}

.ho-dir-label.is-sell {
    color: #2563eb;
}

.ho-status-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.ho-status-pill.is-processing {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.ho-status-pill.is-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ho-amounts-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ho-amt-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ho-amt-col.is-right {
    text-align: right;
}

.ho-amt-caption {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.ho-amt-val {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.ho-amt-val.is-buy {
    color: #059669;
}

.ho-amt-val.is-sell {
    color: #2563eb;
}

.ho-details-box {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ho-detail-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
}

.ho-detail-line span {
    color: #64748b;
}

.ho-detail-line strong {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.ho-guest-card {
    display: block;
    text-decoration: none;
    color: #334155;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 13px;
    padding: 11px 13px;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ho-guest-card:hover {
    border-color: #475569;
    background: #e2e8f0;
}

.ho-guest-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
}

.ho-guest-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
}

.ho-guest-meta strong {
    color: #0f172a;
    font-size: 0.86rem;
}

.ho-empty-state {
    text-align: center;
    padding: 20px 12px;
    font-size: 0.84rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ho-empty-market-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
}

/* Тости з кнопкою швидкого переходу */
.toast-body-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.toast-action-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.toast-action-link:hover {
    filter: brightness(1.08);
}

/* =========================================================================
   БЛОК 3: ОФІЦІЙНА ВЕРИФІКОВАНА КВИТАНЦІЯ З ВОДЯНИМ ЗНАКОМ І QR-РЕЄСТРОМ
   ========================================================================= */

.verified-receipt-modal-overlay {
    z-index: 2600;
    padding: 18px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}

.verified-receipt-modal-shell {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 24px auto;
}

.vr-modal-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #0f172a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.verify-receipt-page {
    min-height: calc(100vh - 120px);
    padding: 36px 16px 64px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.verify-receipt-container {
    width: 100%;
    max-width: 560px;
}

.verified-receipt-card {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    padding: 30px 28px 26px;
    overflow: hidden;
}

.vr-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.13);
    transform: rotate(-28deg);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.verified-receipt-card > *:not(.vr-watermark) {
    position: relative;
    z-index: 1;
}

.vr-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 22px;
}

.vr-brand-title {
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: #0f172a;
}

.vr-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 22px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.vr-status-pill.is-completed {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #34d399;
}

.vr-status-pill.is-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1.5px solid #fbbf24;
}

.vr-status-pill.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #f87171;
}

.vr-registry-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: #047857;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 4px 12px;
}

.vr-amount-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    margin-bottom: 18px;
}

.vr-caption {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #64748b;
    text-transform: uppercase;
}

.vr-big-usdt {
    font-size: 2.05rem;
    font-weight: 900;
    color: #1d4ed8;
    line-height: 1.15;
}

.vr-sub-rate {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}

.vr-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.vr-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vr-meta-col.is-right {
    text-align: right;
}

.vr-meta-val {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}

.vr-parties-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vr-party-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.vr-party-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.vr-party-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.vr-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    background: #dbeafe;
    color: #1e40af;
}

.vr-role-badge.is-gold {
    background: #fef08a;
    color: #854d0e;
}

.vr-party-id {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.vr-party-req {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #475569;
}

.vr-hash-section {
    margin-bottom: 16px;
}

.vr-hash-code {
    display: block;
    margin-top: 6px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.73rem;
    color: #1e293b;
    word-break: break-all;
}

.vr-verify-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.vr-qr-img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    flex-shrink: 0;
}

.vr-verify-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.vr-verify-text p {
    margin: 0 0 6px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #475569;
}

.vr-verify-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.vr-verify-link:hover {
    text-decoration: underline;
}

.vr-legal-footnote {
    font-size: 0.71rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0 0 18px;
    text-align: center;
}

.vr-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vr-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.14s ease;
}

.vr-pdf-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.vr-secondary-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vr-secondary-link-btn:hover {
    background: #f1f5f9;
}

.vr-notfound-body {
    text-align: center;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .header-orders-trigger-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .header-orders-popover {
        position: fixed;
        top: 64px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .verified-receipt-card {
        padding: 22px 16px 20px;
    }

    .vr-big-usdt {
        font-size: 1.65rem;
    }

    .vr-meta-grid {
        grid-template-columns: 1fr;
    }

    .vr-meta-col.is-right {
        text-align: left;
    }

    .vr-verify-box {
        flex-direction: column;
        text-align: center;
    }

    .vr-watermark {
        font-size: 1.45rem;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .verified-receipt-card,
    .verified-receipt-card * {
        visibility: visible;
    }

    .verified-receipt-modal-overlay,
    .verify-receipt-page {
        position: static;
        background: #ffffff;
        padding: 0;
    }

    .verified-receipt-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #cbd5e1;
    }

    .vr-no-print {
        display: none;
    }
}


/* ================= (?v=209) ТОСТИ НОВОГО ОРДЕРА / БРОНІ ГОСТЯ ТА БЕЙДЖІ ЛОЯЛЬНОСТІ ================= */
.toast-message.toast-new-order {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(4, 120, 87, 0.96));
    border: 1.5px solid rgba(52, 211, 153, 0.85);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.38);
    color: #ecfdf5;
    font-weight: 700;
}

.toast-message.toast-guest-res {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.98), rgba(180, 83, 9, 0.96));
    border: 1.5px solid rgba(251, 191, 36, 0.9);
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.36);
    color: #fffbeb;
    font-weight: 700;
}

.p2p-loyalty-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
    white-space: nowrap;
}

.p2p-loyalty-pill.is-mid {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.48);
    color: #fcd34d;
}

.p2p-loyalty-pill.is-low {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}

html[data-theme="light"] .p2p-loyalty-pill {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

html[data-theme="light"] .p2p-loyalty-pill.is-mid {
    color: #b45309;
}

html[data-theme="light"] .p2p-loyalty-pill.is-low {
    color: #b91c1c;
}

.pm-kpi-num.is-warn-high {
    color: #f87171;
}

@media (max-width: 600px) {
    .toast-message.toast-new-order,
    .toast-message.toast-guest-res {
        font-size: 0.84rem;
        padding: 12px 14px;
    }
}

/* ================= (?v=210А) ВІКНО ДОЗВОЛУ ЗВУКУ, БЕЙДЖ КОЛОКОЛЬЧИКА ТА ШКАЛА ДИСЦИПЛІНИ ================= */
.bell-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.55);
    z-index: 3;
    pointer-events: none;
}

.sound-unlock-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 9500;
    width: min(640px, calc(100vw - 24px));
    background: linear-gradient(135deg, rgba(11, 18, 34, 0.98), rgba(15, 29, 54, 0.97));
    border: 1.5px solid rgba(56, 189, 248, 0.62);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.58), 0 0 26px rgba(56, 189, 248, 0.2);
    padding: 14px 16px;
    backdrop-filter: blur(16px);
}

html[data-theme="light"] .sound-unlock-banner {
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border-color: rgba(0, 82, 255, 0.45);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.sound-unlock-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sound-unlock-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sound-unlock-copy {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sound-unlock-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.sound-unlock-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.sound-unlock-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sound-unlock-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.7);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.sound-unlock-btn-primary:hover {
    filter: brightness(1.08);
}

.sound-unlock-btn-later {
    padding: 9px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    white-space: nowrap;
}

.notifications-urgent-section {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--border-color);
    background: rgba(239, 68, 68, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bell-urgent-title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fca5a5;
}

html[data-theme="light"] .bell-urgent-title {
    color: #b91c1c;
}

.bell-urgent-card {
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bell-urgent-card.is-shot-req {
    border-color: rgba(239, 68, 68, 0.65);
}

.bell-urgent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--text-primary);
}

.bell-urgent-timer {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    font-weight: 800;
    font-size: 0.76rem;
}

html[data-theme="light"] .bell-urgent-timer {
    color: #b45309;
}

.bell-urgent-reason {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.bell-urgent-policy {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bell-urgent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.bell-urgent-btn {
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.bell-urgent-btn.is-approve {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
}

.bell-urgent-btn.is-reject {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}

html[data-theme="light"] .bell-urgent-btn.is-approve {
    color: #047857;
}

html[data-theme="light"] .bell-urgent-btn.is-reject {
    color: #b91c1c;
}

.bell-urgent-link {
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

.pm-modal-discipline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Єдиний фірмовий бейдж Шкали дисципліни (5 унікальних асоціативних іконок рангів) */
.disc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-primary);
    white-space: nowrap;
}

.disc-badge.is-clean_start {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.45);
    color: #86efac;
}

.disc-badge.is-verified {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.52);
    color: #7dd3fc;
}

.disc-badge.is-reliable {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(192, 132, 252, 0.55);
    color: #d8b4fe;
}

.disc-badge.is-elite {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 179, 8, 0.16));
    border-color: rgba(251, 191, 36, 0.7);
    color: #fde68a;
}

.disc-badge.is-autoblock,
.disc-badge.is-permanent_ban {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fca5a5;
}

html[data-theme="light"] .disc-badge.is-clean_start { color: #15803d; }
html[data-theme="light"] .disc-badge.is-verified { color: #0369a1; }
html[data-theme="light"] .disc-badge.is-reliable { color: #7e22ce; }
html[data-theme="light"] .disc-badge.is-elite { color: #b45309; }
html[data-theme="light"] .disc-badge.is-autoblock,
html[data-theme="light"] .disc-badge.is-permanent_ban { color: #b91c1c; }

.disc-recovery-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fcd34d;
    white-space: nowrap;
}

html[data-theme="light"] .disc-recovery-pill {
    color: #b45309;
}

/* ================= ЄДИНЕ ПОЛЕ ТЕЛЕФОНУ З ВЕКТОРНИМ ПРАПОРОМ УКРАЇНИ (+38 (0XX) XXX-XX-XX) (?v=210_2) ================= */
.ua-phone-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.ua-phone-field:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.ua-phone-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 0 12px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    height: 100%;
    min-height: 42px;
    background: rgba(56, 189, 248, 0.05);
}

html[data-theme="light"] .ua-phone-flag {
    background: rgba(15, 23, 42, 0.03);
}

.ua-phone-flag-svg {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    display: block;
    flex-shrink: 0;
}

.i18n-flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
    vertical-align: -1px;
    margin-inline-end: 5px;
}

.i18n-flag-svg {
    display: block;
    width: 100%;
    height: 100%;
}

html[data-theme="light"] .i18n-flag-badge {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.ua-phone-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 10px 12px !important;
}

.ua-phone-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.72;
    font-weight: 500;
}

@media (max-width: 600px) {
    .sound-unlock-banner {
        bottom: 12px;
        padding: 12px;
    }
    .sound-unlock-actions {
        width: 100%;
    }
    .sound-unlock-btn-primary,
    .sound-unlock-btn-later {
        flex: 1 1 auto;
        text-align: center;
    }
    .disc-badge {
        white-space: normal;
        font-size: 0.73rem;
    }
}

/* ==================== ?v=210_4_4a: КЛІКАБЕЛЬНА ДИСЦИПЛІНА + МАСОВІ КНОПКИ СПОВІЩЕНЬ ==================== */
.notif-bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-elevated);
    flex-wrap: wrap;
}

.notif-bulk-btn {
    padding: 6px 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.notif-bulk-btn.is-read-all:hover:not(:disabled) {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
}

.notif-bulk-btn.is-delete-all {
    border-color: rgba(239, 68, 68, 0.42);
    color: #ef4444;
}

.notif-bulk-btn.is-delete-all:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.14);
    border-color: #ef4444;
}

.notif-bulk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disc-badge.is-clickable {
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.disc-badge.is-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.28);
}

.disc-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.disc-modal-score-big {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
}

.disc-modal-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.disc-rule-tile {
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.disc-rule-delta {
    font-size: 0.78rem;
    font-weight: 900;
}

.disc-rule-delta.is-plus {
    color: #10b981;
}

.disc-rule-delta.is-minus {
    color: #ef4444;
}

.disc-rule-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.disc-rule-desc {
    font-size: 0.73rem;
    color: var(--text-secondary);
    line-height: 1.38;
}

.disc-events-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 290px;
    overflow-y: auto;
}

.disc-event-row {
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.disc-event-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.disc-event-copy strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.disc-event-copy span {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.disc-event-delta {
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.disc-event-delta.is-plus {
    color: #10b981;
}

.disc-event-delta.is-minus {
    color: #ef4444;
}

@media (max-width: 600px) {
    .notif-bulk-actions-bar {
        padding: 8px 12px;
        justify-content: stretch;
    }
    .notif-bulk-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    .disc-modal-rules-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= ПЛАВАЮЧА КНОПКА «↑ НАГОРУ / ↑ TOP» (?v=210_5b_2: СУВОРО СПРАВА) ================= */
.scroll-top-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.36);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease, bottom 0.2s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.scroll-top-fab.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-fab:hover {
    background: rgba(14, 116, 144, 0.95);
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.32);
    transform: translateY(-2px) scale(1.02);
}

.scroll-top-fab:active {
    transform: translateY(0) scale(0.98);
}

.scroll-top-fab:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.scroll-top-fab-arrow {
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1;
}

.scroll-top-fab-label {
    white-space: nowrap;
}

html[data-theme="light"] .scroll-top-fab {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(148, 163, 184, 0.16);
}

html[data-theme="light"] .scroll-top-fab:hover {
    background: #eff6ff;
    color: #0369a1;
    border-color: #38bdf8;
    box-shadow: 0 14px 30px rgba(3, 105, 161, 0.18);
}

/* Якщо в правому нижньому кутку активний і видимий плаваючий кружок Олежки — піднімаємо кнопку строго НАД ним (>= 15px зазору, 0 перетинів!) */
body:has(.floating-olezhka-root:not(.user-dismissed):not(.has-custom-pos):not([hidden]):not(.is-hidden):not(.hidden)) .scroll-top-fab {
    bottom: 164px;
}

body.is-order-room-active .scroll-top-fab {
    bottom: 102px;
}

body.is-order-room-active:has(.floating-olezhka-root:not(.user-dismissed):not(.has-custom-pos):not([hidden]):not(.is-hidden):not(.hidden)) .scroll-top-fab {
    bottom: 234px;
}

/* Автоматичне приховування при будь-якому відкритому модальному вікні, чаті, панелі Олежки або drawer */
body.stage-modal-open .scroll-top-fab,
body.modal-open .scroll-top-fab,
body.has-faceid-scanner-open .scroll-top-fab,
body.right-chat-open .scroll-top-fab,
body.sidebar-drawer-open .scroll-top-fab,
body:has(.floating-olezhka-panel:not(.hidden)) .scroll-top-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
}

@media (max-width: 1024px) {
    .scroll-top-fab {
        right: 14px;
        bottom: 18px;
    }

    body:has(.floating-olezhka-root:not(.user-dismissed):not(.has-custom-pos):not([hidden]):not(.is-hidden):not(.hidden)) .scroll-top-fab {
        bottom: 164px;
    }
}

@media (max-width: 768px) {
    .scroll-top-fab {
        right: 14px;
        bottom: 18px;
        padding: 9px 13px;
        font-size: 0.78rem;
    }

    body.is-order-room-active .scroll-top-fab {
        bottom: 96px;
    }
}

/* На <= 680px сам кружок Олежки зменшується до 56px і опускається до bottom: 54px (в ордері 142px) — синхронно даємо зазор >= 15px */
@media (max-width: 680px) {
    body:has(.floating-olezhka-root:not(.user-dismissed):not(.has-custom-pos):not([hidden]):not(.is-hidden):not(.hidden)) .scroll-top-fab {
        bottom: 130px;
    }

    body.is-order-room-active:has(.floating-olezhka-root:not(.user-dismissed):not(.has-custom-pos):not([hidden]):not(.is-hidden):not(.hidden)) .scroll-top-fab {
        bottom: 220px;
    }
}

@media (max-width: 420px) {
    .scroll-top-fab {
        right: 12px;
        bottom: 16px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }
}
