.client-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.client-logo {
    height: 32px;
}

.header-nav .nav-item {
    border-radius: 0;
    font-family: 'Inter', sans-serif;
}

.btn-lang {
    background: var(--shell-toggle-bg);
    border: 1px solid var(--shell-toggle-border);
    color: var(--shell-toggle-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.btn-lang:hover {
    background: var(--shell-toggle-hover);
    border-color: var(--shell-toggle-border);
}

.btn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    margin-left: 4px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.btn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--shell-text-muted, var(--text-secondary, #a0a0b8));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.btn-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(92vw, 360px);
    height: 100dvh;
    background: var(--shell-surface, #16213e);
    border-left: 1px solid var(--shell-border, #2a3a5c);
    z-index: 1000;
    padding: calc(72px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.mobile-menu-backdrop.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--shell-text, #e8e8f0);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    -webkit-tap-highlight-color: var(--shell-mobile-tap);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: var(--shell-active-bg);
    color: var(--shell-active-text);
}

.mobile-nav-item.active {
    background: var(--shell-active-bg);
    color: var(--shell-active-text);
    font-weight: 600;
}

.mobile-nav-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.12);
    color: var(--shell-toggle-text, #c4b5fd);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mobile-nav-label {
    flex: 1;
    min-width: 0;
}

.mobile-nav-badge {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--primary, #8b5cf6);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-menu-footer {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--shell-border, #2a3a5c);
}

.mobile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--shell-text-soft, #8888a0);
}

.logo-text--compact {
    font-size: 1.1rem;
}

.btn-lang--mobile {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
}

.btn-mobile-logout {
    width: 100%;
    margin-top: 12px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .client-logo {
        height: 26px;
    }

    .client-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .btn-lang {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .client-logo {
        height: 24px;
    }

    .client-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .header-right .status-indicator,
    .header-right #btn-refresh,
    .header-right #btn-logout {
        display: none !important;
    }

    .btn-lang {
        font-size: 11px;
        padding: 3px 8px;
    }

    .btn-hamburger {
        display: flex !important;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-nav-item {
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
}
