/* app/static/css/menu.css */
/* =========================================================
   PAXOR MENU — COMPACT CYAN GLASS VERSION
   Горизонтальное меню + все выезжающие панели
   ========================================================= */

/* =========================================================
   SECTION 1. TOP HORIZONTAL NAVIGATION
   Верхняя фиксированная панель
   ========================================================= */

nav {
    position: fixed !important;
    top: 0;
    left: 0;

    width: 100%;
    height: 62px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 3px 0;
    margin: 0;

    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.04)),
        radial-gradient(circle at 78% 48%, rgba(3, 125, 156, 0.42), transparent 38%),
        linear-gradient(180deg, rgba(3, 125, 156, 0.38), rgba(4, 22, 32, 0.84));

    border-bottom: none;

    box-shadow:
        0 0 14px rgba(3, 125, 156, 0.32),
        0 8px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-size: 1.2em;
    z-index: 1000;

    box-sizing: border-box;
    user-select: none;
}

nav ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
}

/* =========================================================
   SECTION 2. MENU ZONES
   Левая / центральная / правая часть меню
   ========================================================= */

.menu-left {
    padding-left: 18px;
    flex-shrink: 0;
}

.menu-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;
    flex-shrink: 0;
}

.menu-right {
    padding-right: 18px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0;
    flex-shrink: 0;
}

/* =========================================================
   SECTION 3. LOGO / ICONS
   Логотип, иконки, аватар
   ========================================================= */

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* =========================================================
   SECTION 3.1. GLOBAL PAXOR WALLET BADGE
   Глобальный бейдж кошелька между логотипом и Home
   ========================================================= */

.nav-global-wallet {
    min-width: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.nav-global-wallet .music-wallet-status {
    position: relative;
    z-index: 4;

    width: clamp(330px, 29vw, 470px);
    max-width: 470px;
    height: 46px;
    min-height: 46px;

    margin: 0;
    padding: 5px 6px 5px 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    overflow: visible;
    box-sizing: border-box;

    border: 1px solid rgba(255, 195, 74, 0.52);
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 74, 0.11),
            rgba(255, 145, 0, 0.06)
        ),
        rgba(8, 11, 13, 0.88);

    color: #f7fbfc;

    box-shadow:
        0 0 12px rgba(255, 195, 74, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-global-wallet .music-wallet-status.connected {
    border-color: rgba(6, 171, 212, 0.48);

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.13),
            rgba(0, 204, 255, 0.05)
        ),
        rgba(8, 11, 13, 0.88);

    box-shadow:
        0 0 13px rgba(6, 171, 212, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-global-wallet .music-wallet-status.error {
    border-color: rgba(255, 107, 107, 0.58);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.12);
}

.nav-global-wallet .music-wallet-status-text {
    min-width: 0;
    flex: 1 1 auto;

    display: flex !important;
    align-items: center;
    gap: 6px;

    overflow: hidden;
}

.nav-global-wallet .music-wallet-status-text > i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 195, 74, 0.42);
    border-radius: 50%;

    background: rgba(255, 195, 74, 0.14);
    color: #ffd56a;

    font-size: 12px;
    box-sizing: border-box;
}

.nav-global-wallet .music-wallet-status.connected
.music-wallet-status-text > i {
    border-color: rgba(0, 204, 255, 0.42);
    background: rgba(0, 204, 255, 0.16);
    color: #00ccff;
}

.nav-global-wallet .music-wallet-status.error
.music-wallet-status-text > i {
    border-color: rgba(255, 107, 107, 0.42);
    background: rgba(255, 107, 107, 0.16);
    color: #ffb3b3;
}

.nav-global-wallet #music-wallet-status-title {
    flex: 0 0 auto;

    color: #ffffff;

    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;

    white-space: nowrap;
}

.nav-global-wallet .music-wallet-address-row {
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    overflow: hidden;
}

.nav-global-wallet #music-wallet-status-detail {
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #e8fbff;

    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
}

.nav-global-wallet .music-copy-wallet-address-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #00ccff;

    font-size: 11px;
    cursor: pointer;

    transition:
        color 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.nav-global-wallet .music-copy-wallet-address-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 204, 255, 0.10);
    color: #ffffff;
}

.nav-global-wallet .music-copy-wallet-address-btn.copied {
    color: #1db954;
}

.nav-global-wallet .music-copy-wallet-address-btn[hidden] {
    display: none;
}

.nav-global-wallet .music-connect-wallet-btn {
    height: 32px;
    min-height: 32px;
    flex: 0 0 auto;

    padding: 4px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid rgba(255, 195, 74, 0.55);
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 74, 0.20),
            rgba(255, 145, 0, 0.10)
        ),
        rgba(255, 195, 74, 0.10);

    color: #ffd56a;

    font: inherit;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;

    box-sizing: border-box;
    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.nav-global-wallet .music-connect-wallet-btn i {
    font-size: 10px;
}

.nav-global-wallet .music-connect-wallet-btn:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 74, 0.28),
            rgba(255, 145, 0, 0.15)
        ),
        rgba(255, 195, 74, 0.14);

    box-shadow:
        0 0 16px rgba(255, 195, 74, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-global-wallet .music-connect-wallet-btn.disconnect {
    border-color: rgba(255, 107, 107, 0.58);

    background:
        linear-gradient(
            90deg,
            rgba(255, 107, 107, 0.20),
            rgba(255, 145, 0, 0.08)
        ),
        rgba(255, 107, 107, 0.08);

    color: #ffb5b5;
}

.nav-global-wallet .music-connect-wallet-btn.disconnect:hover {
    background:
        linear-gradient(
            90deg,
            rgba(255, 107, 107, 0.28),
            rgba(255, 145, 0, 0.11)
        ),
        rgba(255, 107, 107, 0.12);

    box-shadow: 0 0 16px rgba(255, 107, 107, 0.18);
}


/* =========================================================
   SECTION 3.2. GLOBAL NETWORK SELECTOR
   Умная навигация по сетям внутри глобального бейджа
   ========================================================= */

.nav-global-wallet .music-network-selector {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-global-wallet .music-network-trigger {
    height: 32px;
    min-height: 32px;
    max-width: 128px;
    padding: 4px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid rgba(6, 217, 255, 0.38);
    border-radius: 999px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.07)),
        rgba(3, 21, 28, 0.78);

    color: #e8fbff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.nav-global-wallet .music-network-trigger:hover,
.nav-global-wallet .music-network-selector.open .music-network-trigger {
    transform: translateY(-1px);
    border-color: rgba(6, 217, 255, 0.68);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.30), rgba(0, 255, 204, 0.12)),
        rgba(3, 21, 28, 0.90);
    box-shadow:
        0 0 14px rgba(6, 217, 255, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.nav-global-wallet .music-network-trigger img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    display: block;
    object-fit: contain;
    border-radius: 50%;

    transform: none !important;
}

.nav-global-wallet #music-network-trigger-label {
    min-width: 0;
    max-width: 76px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-global-wallet .music-network-trigger-arrow {
    flex: 0 0 auto;
    font-size: 8px;
    transition: transform 0.2s ease;
}

.nav-global-wallet .music-network-selector.open
.music-network-trigger-arrow {
    transform: rotate(180deg);
}

.nav-global-wallet .music-network-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1400;

    width: 258px;
    max-height: min(470px, calc(100vh - 82px));
    padding: 8px;

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid rgba(6, 217, 255, 0.42);
    border-radius: 14px;

    background:
        linear-gradient(180deg, rgba(6, 171, 212, 0.13), rgba(0, 0, 0, 0.04)),
        rgba(8, 12, 16, 0.98);

    box-shadow:
        0 0 24px rgba(6, 217, 255, 0.20),
        0 18px 48px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.nav-global-wallet .music-network-menu[hidden] {
    display: none;
}

.nav-global-wallet .music-network-option {
    width: 100%;
    min-height: 48px;
    margin: 0 0 6px;
    padding: 7px 9px;

    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(6, 171, 212, 0.22);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;

    text-align: left;
    cursor: pointer;
    box-sizing: border-box;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.nav-global-wallet .music-network-option:last-child {
    margin-bottom: 0;
}

.nav-global-wallet .music-network-option:hover {
    transform: translateX(2px);
    border-color: rgba(6, 217, 255, 0.48);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.07)),
        rgba(255, 255, 255, 0.045);
}

.nav-global-wallet .music-network-option.selected {
    border-color: rgba(0, 204, 255, 0.72);
    background:
        linear-gradient(90deg, rgba(3, 125, 156, 0.40), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.13);
    box-shadow:
        0 0 14px rgba(6, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-global-wallet .music-network-option > img {
    width: 28px;
    height: 28px;

    display: block;
    object-fit: contain;
    border-radius: 50%;

    transform: none !important;
}

.nav-global-wallet .music-network-option-copy {
    min-width: 0;
    display: block;
}

.nav-global-wallet .music-network-option-copy strong,
.nav-global-wallet .music-network-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-global-wallet .music-network-option-copy strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.nav-global-wallet .music-network-option-copy small {
    margin-top: 3px;
    color: rgba(232, 251, 255, 0.62);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.nav-global-wallet .music-network-option-check {
    color: transparent;
    font-size: 11px;
    justify-self: center;
}

.nav-global-wallet .music-network-option.selected
.music-network-option-check {
    color: #00ffcc;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.56);
}

body.light-theme .nav-global-wallet .music-network-menu {
    border-color: rgba(3, 125, 156, 0.34);
    background:
        linear-gradient(180deg, rgba(3, 125, 156, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(250, 252, 253, 0.99);
    box-shadow:
        0 0 20px rgba(3, 125, 156, 0.12),
        0 18px 44px rgba(0, 0, 0, 0.20);
}

body.light-theme .nav-global-wallet .music-network-option {
    border-color: rgba(3, 125, 156, 0.18);
    background: rgba(0, 0, 0, 0.025);
    color: #172027;
}

body.light-theme .nav-global-wallet .music-network-option:hover,
body.light-theme .nav-global-wallet .music-network-option.selected {
    border-color: rgba(3, 125, 156, 0.48);
    background: rgba(3, 125, 156, 0.12);
}

body.light-theme .nav-global-wallet
.music-network-option-copy strong {
    color: #172027;
}

body.light-theme .nav-global-wallet
.music-network-option-copy small {
    color: rgba(23, 32, 39, 0.62);
}

@media (max-width: 1320px) {
    .nav-global-wallet .music-network-trigger {
        max-width: 106px;
    }

    .nav-global-wallet #music-network-trigger-label {
        max-width: 54px;
    }
}

@media (max-width: 980px) {
    .nav-global-wallet .music-network-trigger {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .nav-global-wallet #music-network-trigger-label,
    .nav-global-wallet .music-network-trigger-arrow {
        display: none;
    }

    .nav-global-wallet .music-network-menu {
        right: -44px;
    }
}

@media (max-width: 560px) {
    .nav-global-wallet .music-network-menu {
        position: fixed;
        top: 68px;
        left: 8px;
        right: 8px;

        width: auto;
        max-height: calc(100vh - 82px);
    }
}


/* При средней ширине скрываем длинный основной статус */
@media (max-width: 1500px) {
    .nav-global-wallet #music-wallet-status-title {
        display: none;
    }

    .nav-global-wallet .music-wallet-address-row {
        max-width: 72px;
    }
}

/* На небольшом экране оставляем иконку и кнопку */
@media (max-width: 1100px) {
    .nav-global-wallet .music-wallet-status {
        width: auto;
        max-width: none;
    }

    .nav-global-wallet .music-wallet-address-row {
        display: none;
    }
}

/* Мобильное меню */
@media (max-width: 760px) {
    .nav-global-wallet {
        margin-left: 6px;
    }

    .nav-global-wallet .music-wallet-status {
        height: 42px;
        min-height: 42px;
        padding: 4px 5px;
    }

    .nav-global-wallet .music-wallet-status-text > i {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
}

@media (max-width: 420px) {
    .nav-global-wallet .music-connect-wallet-btn {
        width: 32px;
        padding: 0;
    }

    .nav-global-wallet .music-connect-wallet-btn span {
        display: none;
    }
}

.menu-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nav-leya .menu-item {
    width: 118px;
}

.nav-leya .menu-item img {
    width: 40px;
    height: 40px;

    border-radius: 50%;
    object-fit: cover;
}

.menu-item img.account-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;
    object-fit: cover;
    object-position: center;

    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.language-icon {
    width: 26px;
    height: 26px;

    object-fit: contain;
    border-radius: 50%;
}

img {
    display: block;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.menu-item:hover img {
    transform: scale(1.14);
}

/* =========================================================
   SECTION 4. HORIZONTAL MENU BUTTONS
   Основные кнопки горизонтального меню
   ========================================================= */

.menu-item {
    position: relative;

    width: 108px;
    height: 62px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #ffffff;
    text-decoration: none;

    font-size: 0.92em;

    transition:
        color 0.18s ease,
        filter 0.18s ease,
        transform 0.18s ease;

    user-select: none;
}

.menu-item span {
    display: none;
}

.menu-center .menu-item:hover::before {
    content: "";

    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);

    width: 106px;
    height: 45px;

    border: 1px solid rgba(6, 217, 255, 0.34);
    border-radius: 12px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.08)),
        rgba(3, 125, 156, 0.16);

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    z-index: -1;
}

.menu-center .menu-item.active::after {
    content: "";

    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);

    width: 104px;
    height: 3px;

    border-radius: 999px;

    background: #00ccff !important;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.65);

    z-index: 1;
}

/* =========================================================
   SECTION 5. RIGHT COMPACT BUTTONS
   Язык / калькулятор / уведомления / аккаунт / настройки
   ========================================================= */

.nav-language,
.nav-calculator-right,
.nav-notifications,
.nav-account,
.nav-more {
    position: relative;
    flex-shrink: 0;
}

.nav-language .menu-item {
    width: 46px;
    height: 62px;
}

.nav-language .menu-item:hover::before,
.nav-language .menu-item:hover::after {
    display: none !important;
}

.nav-account .menu-item {
    width: 50px;
    height: 62px;
}

.nav-account .menu-item img.account-avatar {
    width: 36px;
    height: 36px;
}

/* Маленькая стрелка аккаунта */
#account-button::after {
    content: '\f078';

    position: absolute;
    right: 3px;
    bottom: 9px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(232, 251, 255, 0.34);
    border-radius: 50%;

    background: rgba(15, 18, 22, 0.86);
    color: #ffffff;

    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 9px;
    line-height: 1;

    box-sizing: border-box;
    z-index: 3;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

#account-button:hover::after {
    border-color: rgba(6, 217, 255, 0.55);
    background: rgba(6, 171, 212, 0.22);
    color: #00ccff;
}

#account-button.active::after {
    transform: rotate(180deg);
    color: #00ccff;
}

/* =========================================================
   SECTION 6. TOOLTIP
   Подсказки верхнего меню
   ========================================================= */

.menu-item:hover span {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);

    display: block;

    min-width: 112px;
    padding: 6px 11px;

    border: 1px solid rgba(6, 217, 255, 0.24);
    border-radius: 9px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.07)),
        rgba(10, 14, 18, 0.92);

    color: #e8fbff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1100;
    box-sizing: border-box;
}

.nav-language .menu-item:hover span {
    min-width: 130px;
}

/* =========================================================
   SECTION 7. SHARED GLASS PANELS
   Общий стиль всех выезжающих вертикальных панелей
   ========================================================= */

:root {
    --vertical-panel-width: 250px;
}

.nav-music .menu-item > i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: currentColor;
    font-size: 19px;
}

.account-menu,
.language-menu,
.calculator-panel,
.vertical-menu,
.notification-dropdown {
    width: var(--vertical-panel-width);

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);

    border: 1px solid rgba(6, 171, 212, 0.44);
    border-top: none;
    border-radius: 0 0 14px 14px;

    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    box-sizing: border-box;
}

/* =========================================================
   SECTION 8. ACCOUNT SIDE MENU
   Меню аккаунта справа
   ========================================================= */

.account-menu {
    position: fixed;
    top: 62px;
    right: -340px;

    max-height: calc(100vh - 62px);

    padding: 22px 14px 16px;

    overflow-y: auto;
    z-index: 900;

    transition: right 0.28s ease;
}

.account-menu.open {
    right: 0 !important;
}

.account-menu ul {
    display: block;

    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   SECTION 9. ACCOUNT MENU ITEMS
   Элементы меню аккаунта
   ========================================================= */

.account-menu ul li,
.vertical-menu ul li {
    position: relative;

    height: 40px;
    margin: 6px 0;
    padding: 6px 10px 6px 42px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    background: rgba(8, 12, 16, 0.92);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.18s ease;

    box-sizing: border-box;
}

.account-menu ul li:hover,
.vertical-menu ul li:hover {
    transform: translateX(-1px);

    border-color: rgba(6, 217, 255, 0.42);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.08)),
        rgba(10, 14, 18, 0.72);

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-menu ul li::before,
.vertical-menu ul li::before {
    content: "";

    position: absolute;
    left: 8px;

    width: 27px;
    height: 27px;

    border: 1px solid rgba(6, 217, 255, 0.22);
    border-radius: 50%;

    background: rgba(6, 171, 212, 0.12);

    transition:
        background 0.22s ease,
        border-color 0.22s ease;

    z-index: 1;
}

.account-menu ul li:hover::before,
.vertical-menu ul li:hover::before {
    border-color: rgba(6, 217, 255, 0.50);
    background: rgba(6, 171, 212, 0.22);
}

.account-menu ul li i,
.vertical-menu ul li i {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 12px;

    transition: color 0.22s ease;
    z-index: 2;
}

.account-menu ul li:hover i,
.vertical-menu ul li:hover i {
    color: #00ccff;
}

.account-menu ul li a,
.vertical-menu ul li a,
.account-menu .logout-btn {
    position: relative;
    z-index: 2;

    display: block;

    padding-left: 8px;

    color: #ffffff;
    background: transparent;

    border: none;
    outline: none;
    box-shadow: none;

    text-decoration: none;
    text-align: left;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    white-space: nowrap;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);

    cursor: pointer;

    transition: color 0.22s ease;

    appearance: none;
    -webkit-appearance: none;
}

.account-menu ul li:hover a,
.vertical-menu ul li:hover a,
.account-menu .logout-btn:hover {
    color: #00ccff;
}

.account-menu .logout-btn,
.account-menu .logout-btn:focus,
.account-menu .logout-btn:active,
.account-menu .logout-btn:focus-visible {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.account-menu .menu-item {
    width: auto;
    height: auto;

    flex-direction: row;
    padding: 0;
}

/* =========================================================
   SECTION 10. LANGUAGE DROPDOWN
   Выпадающее меню языка
   ========================================================= */

.language-menu {
    position: fixed;
    top: 62px;
    right: 0;

    max-height: calc(100vh - 62px);

    padding: 22px 14px 16px;

    overflow-y: auto;
    z-index: 900;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.language-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu ul {
    display: block;

    list-style: none;
    margin: 0;
    padding: 0;
}

.language-menu ul li {
    min-height: 40px;
    margin: 6px 0;
    padding: 7px 10px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 12px;

    background: rgba(8, 12, 16, 0.92);

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.language-menu ul li:hover,
.language-menu ul li.active {
    border-color: rgba(6, 217, 255, 0.42);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.08)),
        rgba(10, 14, 18, 0.72);

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.language-menu ul li img.lang-icon {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    border-radius: 4px;
    object-fit: contain;
}

.language-menu ul li span {
    color: #ffffff;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    white-space: nowrap;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);

    transition: color 0.22s ease;
}

.language-menu ul li:hover span,
.language-menu ul li.active span {
    color: #00ccff;
}

.language-menu ul li .lang-check {
    margin-left: auto;

    color: #00ccff;
    font-size: 13px;

    display: none;
    flex-shrink: 0;
}

.language-menu ul li.active .lang-check {
    display: inline;
}

.language-menu ul li.active .lang-check::before {
    content: "✓";
}

/* =========================================================
   SECTION 11. VERTICAL MENU
   Меню с тремя точками справа
   ========================================================= */

.vertical-menu {
    position: fixed;
    top: 62px;
    right: -340px;

    max-height: calc(100vh - 62px);
    height: auto;

    padding: 0 0 16px;

    overflow-y: auto;
    z-index: 900;

    transition: right 0.28s ease;
}

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

.vertical-menu ul {
    display: block;

    list-style: none;
    margin: 0;
    padding: 22px 14px 0;
}

/* =========================================================
   SECTION 12. CALCULATOR PANEL
   Панель калькулятора
   ========================================================= */

.calculator-panel {
    position: fixed;
    top: 62px;
    left: -330px;

    max-height: calc(100vh - 62px);

    overflow-y: auto;
    z-index: 900;

    transition: left 0.28s ease;
}

.calculator-panel.open {
    left: 0;
}

.calculator-content {
    padding: 18px 14px 16px;

    color: #ffffff;
}

.memory-display {
    margin-bottom: 8px;

    color: #bdefff;

    font-size: 12px;
    text-align: right;
}

#calc-display {
    width: 100%;

    margin-bottom: 10px;
    padding: 9px 10px;

    border: 1px solid rgba(6, 217, 255, 0.24);
    border-radius: 10px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.08), rgba(0, 255, 204, 0.025)),
        rgba(10, 14, 18, 0.72);

    color: #ffffff;

    font-size: 16px;
    line-height: 1.2;

    text-align: right;

    box-sizing: border-box;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.calc-button {
    min-height: 34px;
    padding: 7px 5px;

    border: 1px solid rgba(6, 217, 255, 0.18);
    border-radius: 9px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.10), rgba(0, 255, 204, 0.035)),
        rgba(10, 14, 18, 0.56);

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.16s ease;
}

.calc-button:hover {
    transform: translateY(-1px);

    border-color: rgba(6, 217, 255, 0.42);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.20), rgba(0, 255, 204, 0.08)),
        rgba(10, 14, 18, 0.72);

    box-shadow:
        0 0 10px rgba(6, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calc-button.operation,
.calc-button.equals {
    border-color: rgba(0, 204, 255, 0.38);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.24), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.16);

    color: #e8fbff;
}

.calc-button.operation:hover,
.calc-button.equals:hover {
    border-color: rgba(0, 204, 255, 0.62);
    color: #ffffff;
}

.calc-button.tall {
    grid-row: span 2;
}

.calc-button.zero {
    grid-column: span 2;
}

.close {
    position: absolute;
    top: 8px;
    right: 12px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.22s ease,
        transform 0.18s ease;
}

.close:hover {
    color: #00ccff;
    transform: scale(1.08);
}

.calculator-form,
.calculator-form input,
.calculator-form select,
.calculator-form button,
#result {
    display: none;
}

/* =========================================================
   SECTION 13. RIGHT CALCULATOR BUTTON
   Кнопка калькулятора в горизонтальном меню
   ========================================================= */

.calculator-menu-button,
.notification-button,
.menu-toggle-btn {
    position: relative;

    width: 46px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    color: #ffffff;

    font-size: 21px;
    line-height: 1;

    cursor: pointer;
    user-select: none;

    transition:
        color 0.25s ease,
        transform 0.20s ease;
}

.calculator-menu-button,
.calculator-menu-button:focus,
.calculator-menu-button:active,
.calculator-menu-button:focus-visible,
.notification-button,
.notification-button:focus,
.notification-button:active,
.notification-button:focus-visible,
.menu-toggle-btn,
.menu-toggle-btn:focus,
.menu-toggle-btn:active,
.menu-toggle-btn:focus-visible {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.calculator-menu-button:hover,
.calculator-menu-button.active,
.notification-button:hover,
.notification-button.active,
.menu-toggle-btn:hover,
.menu-toggle-btn.active {
    color: #037d9c;
}

.calculator-menu-button:active,
.notification-button:active,
.menu-toggle-btn:active {
    transform: scale(0.96);
}

.calculator-menu-button i,
.notification-button i,
.menu-toggle-btn i {
    pointer-events: none;

    transition: transform 0.25s ease;
}

.calculator-menu-button:hover i,
.notification-button:hover i,
.menu-toggle-btn:hover i {
    transform: scale(1.14);
}

/* Tooltip калькулятора, уведомлений и настроек */
.calculator-menu-button .calculator-tooltip,
.notification-button .notification-tooltip,
.menu-toggle-btn .menu-tooltip {
    display: none;
}

.calculator-menu-button:hover .calculator-tooltip,
.notification-button:hover .notification-tooltip,
.menu-toggle-btn:hover .menu-tooltip {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);

    display: block;

    min-width: 112px;
    padding: 6px 11px;

    border: 1px solid rgba(6, 217, 255, 0.24);
    border-radius: 9px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.07)),
        rgba(10, 14, 18, 0.92);

    color: #e8fbff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    text-align: center;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1100;
    box-sizing: border-box;
}

/* =========================================================
   SECTION 14. NOTIFICATIONS
   Уведомления
   ========================================================= */

.notification-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 12px;
    right: 8px;

    min-width: 15px;
    height: 15px;
    padding: 0 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;

    background: #ff3b3b;
    color: #ffffff;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    box-sizing: border-box;
}

.notification-dropdown {
    position: fixed;
    top: 62px;
    right: 0;

    max-height: calc(100vh - 62px);

    padding: 0;

    overflow: hidden;
    z-index: 900;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.notification-dropdown.open,
.notification-dropdown.active,
.notification-wrapper.open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    min-height: 48px;
    padding: 13px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border-bottom: 1px solid rgba(6, 217, 255, 0.18);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.16), rgba(0, 255, 204, 0.05)),
        rgba(10, 14, 18, 0.58);

    box-sizing: border-box;
}

.notification-header span {
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.notification-mark-all {
    padding: 5px 8px;

    border: 1px solid rgba(6, 217, 255, 0.22);
    border-radius: 8px;

    background: rgba(6, 171, 212, 0.10);
    color: #bdefff;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.notification-mark-all:hover {
    border-color: rgba(6, 217, 255, 0.46);
    background: rgba(6, 171, 212, 0.20);
    color: #ffffff;
}

.notification-list {
    max-height: 340px;
    padding: 10px;

    overflow-y: auto;
}

.notification-empty {
    padding: 16px 10px;

    color: #bdefff;

    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.notification-item {
    margin-bottom: 7px;
    padding: 9px 10px;

    border: 1px solid rgba(6, 217, 255, 0.16);
    border-radius: 10px;

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.10), rgba(0, 255, 204, 0.035)),
        rgba(10, 14, 18, 0.56);

    color: #ffffff;

    font-size: 12px;
    line-height: 1.35;

    box-sizing: border-box;
}

.notification-item:hover {
    border-color: rgba(6, 217, 255, 0.40);
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.18), rgba(0, 255, 204, 0.08)),
        rgba(10, 14, 18, 0.72);
}

.notification-view-all {
    display: block;

    padding: 12px 14px;

    border-top: 1px solid rgba(6, 217, 255, 0.18);

    color: #00ccff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    background: rgba(10, 14, 18, 0.46);

    transition:
        background 0.22s ease,
        color 0.22s ease;
}

.notification-view-all:hover {
    background: rgba(6, 171, 212, 0.16);
    color: #ffffff;
}

/* =========================================================
   SECTION 15. BODY OFFSET
   Отступ страницы под fixed-menu
   ========================================================= */

body {
    margin: 0;
    padding: 0;
    padding-top: 62px;
}

/* =========================================================
   SECTION 16. SCROLLBAR FOR PANELS
   Скроллбар панелей
   ========================================================= */

.account-menu,
.language-menu,
.calculator-panel,
.vertical-menu,
.notification-dropdown,
.notification-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 217, 255, 0.48) rgba(255, 255, 255, 0.055);
}

.account-menu::-webkit-scrollbar,
.language-menu::-webkit-scrollbar,
.calculator-panel::-webkit-scrollbar,
.vertical-menu::-webkit-scrollbar,
.notification-dropdown::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
    width: 8px;
}

.account-menu::-webkit-scrollbar-track,
.language-menu::-webkit-scrollbar-track,
.calculator-panel::-webkit-scrollbar-track,
.vertical-menu::-webkit-scrollbar-track,
.notification-dropdown::-webkit-scrollbar-track,
.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
}

.account-menu::-webkit-scrollbar-thumb,
.language-menu::-webkit-scrollbar-thumb,
.calculator-panel::-webkit-scrollbar-thumb,
.vertical-menu::-webkit-scrollbar-thumb,
.notification-dropdown::-webkit-scrollbar-thumb,
.notification-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(6, 217, 255, 0.42);
}

/* =========================================================
   SECTION 17. LIGHT THEME
   Светлая тема
   ========================================================= */

body.light-theme nav,
.light-theme nav {
    background:
        linear-gradient(90deg, rgba(3, 125, 156, 0.92), rgba(3, 125, 156, 0.72)),
        radial-gradient(circle at 78% 48%, rgba(255, 255, 255, 0.18), transparent 38%),
        #037d9c;

    border-bottom: none;

    box-shadow:
        0 0 12px rgba(3, 125, 156, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);

    color: #ffffff;
}

body.light-theme .menu-item,
.light-theme .menu-item,
body.light-theme .calculator-menu-button,
body.light-theme .notification-button,
body.light-theme .menu-toggle-btn {
    color: #ffffff;
}

body.light-theme .menu-center .menu-item:hover::before,
.light-theme .menu-center .menu-item:hover::before {
    border-color: rgba(255, 255, 255, 0.32);

    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 255, 204, 0.08)),
        rgba(255, 255, 255, 0.12);
}

body.light-theme .account-menu,
body.light-theme .language-menu,
body.light-theme .calculator-panel,
body.light-theme .vertical-menu,
body.light-theme .notification-dropdown,
.light-theme .account-menu,
.light-theme .language-menu,
.light-theme .calculator-panel,
.light-theme .vertical-menu,
.light-theme .notification-dropdown {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);

    border-color: rgba(6, 171, 212, 0.44);
    border-top: none;

    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 18px 50px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.light-theme .account-menu ul li,
body.light-theme .vertical-menu ul li,
body.light-theme .language-menu ul li,
body.light-theme .calc-button,
body.light-theme .notification-item,
.light-theme .account-menu ul li,
.light-theme .vertical-menu ul li,
.light-theme .language-menu ul li,
.light-theme .calc-button,
.light-theme .notification-item {
    border-color: rgba(6, 171, 212, 0.28);

    background: rgba(8, 12, 16, 0.92);
}

body.light-theme .account-menu ul li:hover,
body.light-theme .vertical-menu ul li:hover,
body.light-theme .language-menu ul li:hover,
body.light-theme .language-menu ul li.active,
body.light-theme .calc-button:hover,
body.light-theme .notification-item:hover,
.light-theme .account-menu ul li:hover,
.light-theme .vertical-menu ul li:hover,
.light-theme .language-menu ul li:hover,
.light-theme .language-menu ul li.active,
.light-theme .calc-button:hover,
.light-theme .notification-item:hover {
    border-color: rgba(6, 217, 255, 0.62);

    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.12);
}

body.light-theme .account-menu ul li::before,
body.light-theme .vertical-menu ul li::before,
.light-theme .account-menu ul li::before,
.light-theme .vertical-menu ul li::before {
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.14);
}

body.light-theme .account-menu ul li a,
body.light-theme .vertical-menu ul li a,
body.light-theme .account-menu .logout-btn,
body.light-theme .language-menu ul li span,
body.light-theme .notification-header span,
body.light-theme .notification-empty,
body.light-theme .notification-item,
body.light-theme .memory-display,
body.light-theme #calc-display,
body.light-theme .calc-button,
.light-theme .account-menu ul li a,
.light-theme .vertical-menu ul li a,
.light-theme .account-menu .logout-btn,
.light-theme .language-menu ul li span,
.light-theme .notification-header span,
.light-theme .notification-empty,
.light-theme .notification-item,
.light-theme .memory-display,
.light-theme #calc-display,
.light-theme .calc-button {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

body.light-theme .account-menu ul li i,
body.light-theme .vertical-menu ul li i,
.light-theme .account-menu ul li i,
.light-theme .vertical-menu ul li i {
    color: #ffffff;
}

body.light-theme .account-menu ul li:hover a,
body.light-theme .vertical-menu ul li:hover a,
body.light-theme .account-menu ul li:hover i,
body.light-theme .vertical-menu ul li:hover i,
body.light-theme .account-menu .logout-btn:hover,
body.light-theme .language-menu ul li:hover span,
body.light-theme .language-menu ul li.active span,
body.light-theme .calculator-menu-button:hover,
body.light-theme .calculator-menu-button.active,
body.light-theme .notification-button:hover,
body.light-theme .notification-button.active,
body.light-theme .menu-toggle-btn:hover,
body.light-theme .menu-toggle-btn.active,
.light-theme .account-menu ul li:hover a,
.light-theme .vertical-menu ul li:hover a,
.light-theme .account-menu ul li:hover i,
.light-theme .vertical-menu ul li:hover i,
.light-theme .account-menu .logout-btn:hover,
.light-theme .language-menu ul li:hover span,
.light-theme .language-menu ul li.active span,
.light-theme .calculator-menu-button:hover,
.light-theme .calculator-menu-button.active,
.light-theme .notification-button:hover,
.light-theme .notification-button.active,
.light-theme .menu-toggle-btn:hover,
.light-theme .menu-toggle-btn.active {
    color: #e8fbff;
}

.music-messages-top {
    position: relative;
}

.music-messages-popover {
    width: min(420px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 118px));
    padding: 22px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1200;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #111;
    box-shadow: 0 24px 70px rgba(0,0,0,.58);
}

.music-messages-popover[hidden] {
    display: none;
}

.music-messages-popover-head {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.music-messages-popover-head h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.music-messages-popover-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}

.music-message-thread-list {
    display: grid;
    gap: 4px;
}

.music-message-thread {
    width: 100%;
    min-height: 68px;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.music-message-thread:hover {
    background: rgba(255,255,255,.07);
}

.music-message-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.42));
    background-position: center;
    background-size: cover;
    color: #111;
    overflow: hidden;
}

.music-message-avatar.has-artwork > i {
    display: none;
}

.music-message-thread-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.music-message-thread-copy strong,
.music-message-thread-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-message-thread-copy small,
.music-message-thread time,
.music-message-empty {
    color: rgba(255,255,255,.64);
    font-size: 12px;
}

.music-view-all-messages {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.music-view-all-messages:hover,
.music-messages-popover-head button:hover {
    color: #1db954;
}

body.light-theme .calculator-menu-button:hover,
body.light-theme .calculator-menu-button.active,
body.light-theme .notification-button:hover,
body.light-theme .notification-button.active,
body.light-theme .menu-toggle-btn:hover,
body.light-theme .menu-toggle-btn.active,
.light-theme .calculator-menu-button:hover,
.light-theme .calculator-menu-button.active,
.light-theme .notification-button:hover,
.light-theme .notification-button.active,
.light-theme .menu-toggle-btn:hover,
.light-theme .menu-toggle-btn.active {
    color: #037d9c;
}

body.light-theme #account-button::after,
.light-theme #account-button::after {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

body.light-theme #account-button:hover::after,
body.light-theme #account-button.active::after,
.light-theme #account-button:hover::after,
.light-theme #account-button.active::after {
    color: #e8fbff;
}

/* Mirror the top navigation for Hebrew and other RTL layouts. */
html[dir="rtl"] nav {
    direction: ltr;
}

html[dir="rtl"] .menu-left {
    order: 3;
    padding-right: 18px;
    padding-left: 0;
}

html[dir="rtl"] .menu-center {
    direction: ltr;
    flex-direction: row-reverse;
}

html[dir="rtl"] .menu-right {
    order: 1;
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 18px;
}

html[dir="rtl"] #account-button::after {
    right: auto;
    left: 3px;
}

/* =========================================================
   SECTION 18. MOBILE
   Мобильная адаптация меню
   ========================================================= */

@media (max-width: 1100px) {
    .menu-center {
        gap: 2px;
    }

    .menu-item {
        width: 92px;
    }

    .menu-center .menu-item:hover::before {
        width: 90px;
    }

    .menu-center .menu-item.active::after {
        width: 88px;
    }

    .nav-leya .menu-item {
        width: 100px;
    }
}

@media (max-width: 900px) {
    nav {
        height: 58px;
    }

    body {
        padding-top: 58px;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }

    .menu-item {
        width: 74px;
        height: 58px;
    }

    .menu-item img {
        width: 23px;
        height: 23px;
    }

    .nav-leya .menu-item {
        width: 80px;
    }

    .nav-leya .menu-item img {
        width: 34px;
        height: 34px;
    }

    .nav-language .menu-item,
    .nav-account .menu-item,
    .calculator-menu-button,
    .notification-button,
    .menu-toggle-btn {
        height: 58px;
    }

    .account-menu,
    .language-menu,
    .calculator-panel,
    .vertical-menu,
    .notification-dropdown {
        top: 58px;
        max-height: calc(100vh - 58px);
    }

    .menu-item:hover span,
    .calculator-menu-button:hover .calculator-tooltip,
    .notification-button:hover .notification-tooltip,
    .menu-toggle-btn:hover .menu-tooltip {
        top: 58px;
    }
}

@media (max-width: 760px) {
    :root {
        --vertical-panel-width: 235px;
    }

    .menu-center {
        display: none;
    }

    .menu-left {
        padding-left: 12px;
    }

    .menu-right {
        padding-right: 10px;
    }

    html[dir="rtl"] .menu-left {
        padding-right: 12px;
        padding-left: 0;
    }

    html[dir="rtl"] .menu-right {
        padding-right: 0;
        padding-left: 10px;
    }

    .account-menu {
        right: -300px;
    }

    .vertical-menu {
        right: -300px;
    }

    .calculator-panel {
        left: -300px;
    }
}

@media (max-width: 420px) {
    .account-menu,
    .language-menu,
    .calculator-panel,
    .vertical-menu,
    .notification-dropdown {
        width: 100%;
    }

    .account-menu,
    .vertical-menu {
        right: -100%;
    }

    .calculator-panel {
        left: -100%;
    }

    .notification-dropdown {
        right: 0;
    }
}


/* =========================================================
   COMPACT MULTI-LEVEL GLOBAL WALLET — FINAL OVERRIDES
   ========================================================= */
.nav-global-wallet{position:relative;min-width:0;margin-left:7px;display:flex;align-items:center;flex:0 1 auto}
.nav-global-wallet .music-wallet-status,
.nav-global-wallet .music-wallet-status.connected,
.nav-global-wallet .music-wallet-status.not-connected,
.nav-global-wallet .music-wallet-status.error{
position:relative;z-index:4;width:clamp(276px,22vw,318px);max-width:318px;height:44px;min-height:44px;margin:0;padding:4px 5px 4px 7px;
display:grid;grid-template-columns:32px minmax(48px,1fr) auto auto;align-items:center;gap:5px;overflow:visible;box-sizing:border-box;
border:1px solid rgba(232,251,255,.15)!important;border-radius:14px!important;
background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(6,171,212,.055)),rgba(8,14,19,.72)!important;
color:#f7fbfc;box-shadow:0 5px 14px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.09)!important;
backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.nav-global-wallet .music-wallet-details-trigger{position:relative;width:32px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:transparent;color:#dff8ff;cursor:pointer;transition:.18s ease}
.nav-global-wallet .music-wallet-details-trigger>i{font-size:20px;line-height:1}
.nav-global-wallet .music-wallet-details-trigger:hover,
.nav-global-wallet .music-wallet-details-trigger[aria-expanded="true"]{transform:translateY(-1px);background:rgba(6,171,212,.12);color:#fff}
.nav-global-wallet .music-wallet-state-dot{position:absolute;right:2px;bottom:4px;width:7px;height:7px;border:2px solid rgba(8,14,19,.96);border-radius:50%;background:#f2bd55;box-shadow:0 0 7px rgba(242,189,85,.7);box-sizing:content-box}
.nav-global-wallet .music-wallet-status.connected .music-wallet-state-dot{background:#4df2a7;box-shadow:0 0 8px rgba(77,242,167,.78)}
.nav-global-wallet .music-wallet-status.error .music-wallet-state-dot{background:#ff6b6b;box-shadow:0 0 8px rgba(255,107,107,.72)}
.nav-global-wallet .music-wallet-status-text{min-width:0;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;overflow:hidden}
.nav-global-wallet #music-wallet-status-title,.nav-global-wallet #music-wallet-status-detail{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-global-wallet #music-wallet-status-title{color:rgba(232,251,255,.58);font-size:8.5px;font-weight:700;line-height:1;letter-spacing:.03em;text-transform:uppercase}
.nav-global-wallet #music-wallet-status-detail{color:#fff;font-size:10px;font-weight:800;line-height:1.05}
.nav-global-wallet .music-wallet-status.connected #music-wallet-status-detail{color:#8fffc1}
.nav-global-wallet .music-wallet-status.error #music-wallet-status-detail{color:#ffaaaa}
.nav-global-wallet .music-network-trigger,.nav-global-wallet .music-connect-wallet-btn{
height:30px;min-height:30px;padding:3px 6px;display:inline-flex;align-items:center;justify-content:center;gap:4px;
border:1px solid rgba(232,251,255,.16);border-radius:9px;background:linear-gradient(90deg,rgba(6,171,212,.14),rgba(0,255,204,.045)),rgba(5,18,24,.66);
color:#e8fbff;font:inherit;font-size:9px;font-weight:800;line-height:1;white-space:nowrap;box-sizing:border-box;cursor:pointer;transition:.18s ease
}
.nav-global-wallet .music-network-trigger{max-width:88px}
.nav-global-wallet .music-connect-wallet-btn{max-width:72px;padding-inline:7px}
.nav-global-wallet .music-network-trigger:hover,.nav-global-wallet .music-network-selector.open .music-network-trigger,
.nav-global-wallet .music-connect-wallet-btn:hover{transform:translateY(-1px);border-color:rgba(6,217,255,.46);background:linear-gradient(90deg,rgba(6,171,212,.24),rgba(0,255,204,.08)),rgba(5,18,24,.78);box-shadow:0 0 12px rgba(6,217,255,.13)}
.nav-global-wallet .music-connect-wallet-btn.disconnect{border-color:rgba(255,107,107,.34);background:rgba(255,107,107,.09);color:#ffc2c2}
.nav-global-wallet .music-connect-wallet-btn.disconnect:hover{border-color:rgba(255,107,107,.54);background:rgba(255,107,107,.15);box-shadow:0 0 12px rgba(255,107,107,.12)}
.nav-global-wallet .music-network-trigger img{width:18px;height:18px;flex:0 0 18px;display:block;object-fit:contain;border-radius:50%;transform:none!important}
.nav-global-wallet #music-network-trigger-label{min-width:0;max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-global-wallet .music-network-trigger-arrow{flex:0 0 auto;font-size:7px;transition:transform .2s ease}
.nav-global-wallet .music-network-selector.open .music-network-trigger-arrow{transform:rotate(180deg)}
.nav-global-wallet .music-network-menu{top:calc(100% + 11px);right:0;width:258px;border-color:rgba(6,217,255,.34);border-radius:13px}
.nav-global-wallet .music-wallet-details-panel{position:absolute;top:calc(100% + 10px);left:0;z-index:1400;width:304px;padding:11px;border:1px solid rgba(6,217,255,.32);border-radius:13px;background:linear-gradient(180deg,rgba(6,171,212,.12),rgba(0,0,0,.04)),rgba(8,12,16,.98);color:#fff;box-shadow:0 0 22px rgba(6,217,255,.16),0 18px 48px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-sizing:border-box}
.nav-global-wallet .music-wallet-details-panel[hidden]{display:none}
.nav-global-wallet .music-wallet-details-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid rgba(232,251,255,.1)}
.nav-global-wallet .music-wallet-details-heading{min-width:0;display:flex;align-items:center;gap:10px}
.nav-global-wallet .music-wallet-details-heading>i{color:#8feeff;font-size:20px}
.nav-global-wallet .music-wallet-details-heading span,.nav-global-wallet .music-wallet-details-heading strong{display:block}
.nav-global-wallet .music-wallet-details-heading span{color:rgba(232,251,255,.58);font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.nav-global-wallet .music-wallet-details-heading strong{margin-top:3px;color:#fff;font-size:13px;font-weight:800}
.nav-global-wallet .music-wallet-details-close{width:28px;height:28px;flex:0 0 28px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(232,251,255,.12);border-radius:8px;background:rgba(255,255,255,.04);color:rgba(232,251,255,.72);cursor:pointer}
.nav-global-wallet .music-wallet-details-close:hover{border-color:rgba(6,217,255,.36);background:rgba(6,171,212,.12);color:#fff}
.nav-global-wallet .music-wallet-details-section,.nav-global-wallet .music-wallet-details-card{padding:9px;border:1px solid rgba(232,251,255,.09);border-radius:10px;background:rgba(255,255,255,.03)}
.nav-global-wallet .music-wallet-details-label{display:block;margin-bottom:6px;color:rgba(232,251,255,.52);font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.nav-global-wallet .music-wallet-details-address-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:7px}
.nav-global-wallet #music-wallet-details-address{min-width:0;overflow-wrap:anywhere;color:#fff;font-size:11px;font-weight:700;line-height:1.45}
.nav-global-wallet .music-copy-wallet-address-btn{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(6,217,255,.24);border-radius:8px;background:rgba(6,171,212,.08);color:#8feeff;font-size:11px;cursor:pointer}
.nav-global-wallet .music-copy-wallet-address-btn:hover{border-color:rgba(6,217,255,.48);background:rgba(6,171,212,.16);color:#fff}
.nav-global-wallet .music-copy-wallet-address-btn.copied{border-color:rgba(77,242,167,.42);color:#4df2a7}
.nav-global-wallet .music-copy-wallet-address-btn[hidden]{display:none}
.nav-global-wallet .music-wallet-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.nav-global-wallet .music-wallet-details-card{min-width:0;min-height:86px}
.nav-global-wallet .music-wallet-details-network{min-width:0;display:flex;align-items:center;gap:7px}
.nav-global-wallet .music-wallet-details-network img{width:25px;height:25px;flex:0 0 25px;object-fit:contain;border-radius:50%}
.nav-global-wallet .music-wallet-details-network div{min-width:0}
.nav-global-wallet .music-wallet-details-card strong,.nav-global-wallet .music-wallet-details-card small{display:block}
.nav-global-wallet .music-wallet-details-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:10.5px;font-weight:800;line-height:1.25}
.nav-global-wallet .music-wallet-details-card small{margin-top:4px;color:rgba(232,251,255,.56);font-size:9px;line-height:1.25}
.nav-global-wallet .music-wallet-security-note{display:flex;align-items:center;gap:7px;margin-top:8px;padding:8px 9px;border:1px solid rgba(77,242,167,.14);border-radius:9px;background:rgba(77,242,167,.045);color:rgba(225,255,238,.72);font-size:9.5px;line-height:1.35}
.nav-global-wallet .music-wallet-security-note i{color:#4df2a7}
@media(max-width:1450px){
.nav-global-wallet .music-wallet-status{width:274px;grid-template-columns:31px minmax(40px,1fr) auto auto}
.nav-global-wallet #music-wallet-status-title{display:none}
}
@media(max-width:1260px){
.nav-global-wallet .music-wallet-status{width:auto;grid-template-columns:31px auto auto}
.nav-global-wallet .music-wallet-status-text{display:none!important}
.nav-global-wallet .music-network-trigger{width:34px;min-width:34px;padding:0}
.nav-global-wallet #music-network-trigger-label,.nav-global-wallet .music-network-trigger-arrow{display:none}
.nav-global-wallet .music-connect-wallet-btn{width:32px;padding:0}
.nav-global-wallet .music-connect-wallet-btn span{display:none}
.nav-global-wallet .music-network-menu{right:-38px}
}
@media(max-width:760px){
.nav-global-wallet{margin-left:4px}
.nav-global-wallet .music-wallet-status{height:40px;min-height:40px;padding:3px 4px;border-radius:12px!important}
.nav-global-wallet .music-wallet-details-panel,.nav-global-wallet .music-network-menu{position:fixed;top:66px;left:8px;right:8px;width:auto;max-height:calc(100vh - 78px)}
}


/* =========================================================
   PAXOR WALLET — EXPANDED GLOBAL PANEL V1
   ========================================================= */
.nav-global-wallet .music-wallet-details-panel{width:min(390px,calc(100vw - 16px));max-height:calc(100vh - 78px);overflow:auto;padding:12px;scrollbar-width:thin}
.nav-global-wallet .music-wallet-header-actions{display:flex;align-items:center;gap:7px}
.nav-global-wallet .music-wallet-pending-badge{padding:4px 7px;border:1px solid rgba(255,195,74,.38);border-radius:999px;background:rgba(255,195,74,.1);color:#ffd56a;font-size:10px;font-weight:800}
.nav-global-wallet .music-wallet-balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding:12px;border:1px solid rgba(6,217,255,.2);border-radius:12px;background:linear-gradient(135deg,rgba(6,171,212,.16),rgba(0,255,204,.05)),rgba(255,255,255,.025)}
.nav-global-wallet .music-wallet-balance-card strong{display:block;color:#fff;font-size:24px;line-height:1.1}.nav-global-wallet .music-wallet-balance-card small{display:block;margin-top:5px;color:#8feeff;font-size:11px}
.nav-global-wallet .music-wallet-icon-btn{width:32px;height:32px;border:1px solid rgba(6,217,255,.25);border-radius:9px;background:rgba(6,171,212,.1);color:#8feeff;cursor:pointer}.nav-global-wallet .music-wallet-icon-btn.loading i{animation:walletSpin .8s linear infinite}@keyframes walletSpin{to{transform:rotate(360deg)}}
.nav-global-wallet .music-wallet-address-actions{display:flex;gap:6px;margin-top:8px}.nav-global-wallet .music-wallet-link-btn{min-height:27px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 8px;border:1px solid rgba(232,251,255,.11);border-radius:8px;background:rgba(255,255,255,.035);color:#bdefff;font-size:9.5px;font-weight:750;text-decoration:none;cursor:pointer}.nav-global-wallet .music-wallet-link-btn:disabled,.nav-global-wallet .music-wallet-link-btn[aria-disabled=true]{opacity:.42;pointer-events:none}
.nav-global-wallet .music-wallet-quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:8px 0}.nav-global-wallet .music-wallet-quick-actions button{min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(6,217,255,.2);border-radius:10px;background:rgba(6,171,212,.07);color:#dff8ff;font-size:9px;font-weight:800;cursor:pointer}.nav-global-wallet .music-wallet-quick-actions button i{font-size:14px;color:#00ccff}.nav-global-wallet .music-wallet-quick-actions button:hover{border-color:rgba(6,217,255,.45);background:rgba(6,171,212,.14)}
.nav-global-wallet .music-wallet-network-summary{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto 12px;align-items:center;gap:8px;padding:9px;border:1px solid rgba(232,251,255,.09);border-radius:10px;background:rgba(255,255,255,.03);color:#fff;text-align:left;cursor:pointer}.nav-global-wallet .music-wallet-network-summary>img{width:28px;height:28px;object-fit:contain}.nav-global-wallet .music-wallet-network-summary span small,.nav-global-wallet .music-wallet-network-summary span strong{display:block}.nav-global-wallet .music-wallet-network-summary span small{color:rgba(232,251,255,.54);font-size:8.5px}.nav-global-wallet .music-wallet-network-summary span strong{margin-top:2px;font-size:10.5px}.nav-global-wallet .music-wallet-rpc-copy{text-align:right}.nav-global-wallet .music-wallet-rpc-dot{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#8b949e}.nav-global-wallet .music-wallet-rpc-dot.online{background:#22c55e;box-shadow:0 0 8px rgba(34,197,94,.55)}.nav-global-wallet .music-wallet-rpc-dot.slow{background:#f59e0b}.nav-global-wallet .music-wallet-rpc-dot.offline{background:#ef4444}
.nav-global-wallet .music-wallet-mini-section,.nav-global-wallet .music-wallet-gas-card{margin-top:8px;padding:9px;border:1px solid rgba(232,251,255,.085);border-radius:10px;background:rgba(255,255,255,.025)}.nav-global-wallet .music-wallet-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.nav-global-wallet .music-wallet-section-title strong{font-size:10.5px}.nav-global-wallet .music-wallet-section-title button{border:0;background:transparent;color:#62ddff;font-size:9px;font-weight:750;cursor:pointer}.nav-global-wallet .music-wallet-list{display:grid;gap:5px}.nav-global-wallet .music-wallet-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 0;border-top:1px solid rgba(255,255,255,.045);font-size:9.5px}.nav-global-wallet .music-wallet-list-row:first-child{border-top:0}.nav-global-wallet .music-wallet-list-row small{display:block;color:rgba(232,251,255,.5);margin-top:2px}.nav-global-wallet .music-wallet-empty{color:rgba(232,251,255,.48);font-size:9.5px}.nav-global-wallet .music-wallet-nft-summary{display:flex;align-items:center;gap:8px;color:rgba(232,251,255,.58);font-size:9.5px}.nav-global-wallet .music-wallet-nft-summary i{color:#8feeff;font-size:15px}
.nav-global-wallet .music-wallet-transaction-status{margin-top:8px;display:flex;align-items:center;gap:9px;padding:9px;border:1px solid rgba(255,195,74,.26);border-radius:10px;background:rgba(255,195,74,.07);color:#ffd56a}.nav-global-wallet .music-wallet-transaction-status[hidden]{display:none}.nav-global-wallet .music-wallet-transaction-status span strong,.nav-global-wallet .music-wallet-transaction-status span small{display:block}.nav-global-wallet .music-wallet-transaction-status span strong{font-size:10px}.nav-global-wallet .music-wallet-transaction-status span small{margin-top:2px;font-size:8.5px;color:#ffe7ac}
.nav-global-wallet .music-wallet-gas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.nav-global-wallet .music-wallet-gas-grid span{padding:6px;border-radius:8px;background:rgba(0,0,0,.18);color:rgba(232,251,255,.54);font-size:8px}.nav-global-wallet .music-wallet-gas-grid strong{display:block;margin-top:2px;color:#fff;font-size:9px}.nav-global-wallet .music-wallet-footer-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:8px}.nav-global-wallet .music-wallet-footer-actions button{min-height:32px;padding:5px;border:1px solid rgba(232,251,255,.1);border-radius:9px;background:rgba(255,255,255,.03);color:#cfefff;font-size:8.5px;font-weight:750;cursor:pointer}.nav-global-wallet .music-wallet-footer-actions button i{margin-right:4px}
.nav-global-wallet .music-wallet-warning-card{margin-top:8px;padding:9px;border:1px solid rgba(255,195,74,.3);border-radius:10px;background:rgba(255,195,74,.08);color:#ffe6a3}.nav-global-wallet .music-wallet-warning-card strong,.nav-global-wallet .music-wallet-warning-card span{display:block}.nav-global-wallet .music-wallet-warning-card strong{font-size:10px}.nav-global-wallet .music-wallet-warning-card span{margin:4px 0;font-size:9px}.nav-global-wallet .music-wallet-warning-card button{border:0;border-radius:7px;padding:5px 8px;background:#037d9c;color:#fff;font-size:9px;font-weight:800;cursor:pointer}
.paxor-wallet-action-modal{position:fixed;inset:0;z-index:100100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.68);backdrop-filter:blur(8px)}.paxor-wallet-action-modal[hidden]{display:none}.paxor-wallet-action-card{position:relative;width:min(420px,100%);padding:18px;border:1px solid rgba(6,217,255,.34);border-radius:16px;background:linear-gradient(180deg,rgba(6,171,212,.12),rgba(0,0,0,.04)),rgba(8,12,16,.99);color:#fff;box-shadow:0 18px 55px rgba(0,0,0,.62)}.paxor-wallet-action-close{position:absolute;top:10px;right:10px;width:30px;height:30px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(255,255,255,.04);color:#fff;cursor:pointer}.paxor-wallet-action-card h3{margin:0 35px 12px 0;font-size:17px}.paxor-wallet-action-card p{color:#bdefff;font-size:12px;line-height:1.45}.paxor-wallet-receive-qr{width:190px;height:190px;margin:14px auto;padding:10px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center}.paxor-wallet-receive-address{padding:9px;border:1px solid rgba(6,217,255,.18);border-radius:9px;background:rgba(0,0,0,.2);overflow-wrap:anywhere;font-size:11px}.paxor-wallet-receive-warning{margin-top:10px;padding:9px;border:1px solid rgba(255,195,74,.28);border-radius:9px;background:rgba(255,195,74,.08);color:#ffe29a!important;font-weight:750}.paxor-wallet-action-primary{width:100%;min-height:38px;margin-top:10px;border:0;border-radius:10px;background:linear-gradient(90deg,#037d9c,#06abd4);color:#fff;font-weight:800;cursor:pointer}
@media(max-width:700px){.nav-global-wallet .music-wallet-details-panel{left:8px!important;right:8px!important;width:auto!important}.nav-global-wallet .music-wallet-footer-actions{grid-template-columns:1fr}.nav-global-wallet .music-wallet-gas-grid{grid-template-columns:1fr}}


/* =========================================================
   WALLET BADGE — WIDER METAMASK-LIKE PANEL
   ========================================================= */
.menu-left{padding-left:28px}
.nav-global-wallet{margin-left:16px}
.nav-global-wallet .music-wallet-details-panel{
    width:min(450px,calc(100vw - 24px));
    max-height:calc(100vh - 78px);
    padding:16px;
    overflow-y:auto;
    font-size:14px;
    scrollbar-width:thin;
}
.nav-global-wallet .music-wallet-details-header{padding-bottom:13px;margin-bottom:13px}
.nav-global-wallet .music-wallet-details-heading>i{width:38px;height:38px;font-size:17px}
.nav-global-wallet #music-wallet-name{font-size:12px;letter-spacing:.04em}
.nav-global-wallet #music-wallet-details-state{font-size:16px}
.nav-global-wallet .music-wallet-balance-card{padding:16px;border-radius:14px}
.nav-global-wallet .music-wallet-details-label{font-size:11px;letter-spacing:.08em}
.nav-global-wallet #music-wallet-native-balance{font-size:27px;line-height:1.15}
.nav-global-wallet #music-wallet-native-balance-usd{font-size:13px}
.nav-global-wallet .music-wallet-details-section,
.nav-global-wallet .music-wallet-mini-section,
.nav-global-wallet .music-wallet-gas-card{padding:14px;border-radius:13px}
.nav-global-wallet #music-wallet-details-address{font-size:13px;line-height:1.45}
.nav-global-wallet .music-wallet-link-btn{min-height:36px;font-size:12px}
.nav-global-wallet .music-wallet-quick-actions{gap:10px}
.nav-global-wallet .music-wallet-quick-actions button{min-height:58px;font-size:13px;border-radius:13px}
.nav-global-wallet .music-wallet-quick-actions button i{font-size:18px}
.nav-global-wallet .music-wallet-network-summary{min-height:60px;padding:10px 12px;border-radius:13px}
.nav-global-wallet .music-wallet-network-summary img{width:34px;height:34px}
.nav-global-wallet .music-wallet-network-summary strong{font-size:14px}
.nav-global-wallet .music-wallet-network-summary small{font-size:11px}
.nav-global-wallet .music-wallet-section-title strong{font-size:14px}
.nav-global-wallet .music-wallet-section-title button{font-size:11px}
.nav-global-wallet .music-wallet-list{font-size:13px}
.nav-global-wallet .music-wallet-footer-actions button{min-height:40px;font-size:12px}
.nav-global-wallet .music-wallet-security-note{font-size:11px;line-height:1.45}
@media(max-width:760px){
  .menu-left{padding-left:8px}
  .nav-global-wallet{margin-left:7px}
  .nav-global-wallet .music-wallet-details-panel{left:8px!important;right:8px!important;width:auto!important;padding:13px}
}


/* =========================================================
   RIGHT WALLET BUTTON + TWO-LEVEL WALLET DROPDOWN
   ========================================================= */

.nav-wallet-control {
    position: relative;
    flex: 0 0 auto;
}

.nav-wallet-control .wallet-menu-button {
    position: relative;
    width: 46px;
    height: 62px;
    border: 0;
    background: transparent;
    color: rgba(238, 244, 247, 0.78);
    cursor: pointer;
}

.nav-wallet-control .wallet-menu-button > i {
    font-size: 22px;
    transition: color .18s ease, filter .18s ease, transform .18s ease;
}

.nav-wallet-control .wallet-menu-button:hover > i,
.nav-wallet-control .wallet-menu-button.active > i {
    color: #ffffff;
    filter: drop-shadow(0 0 7px rgba(255,255,255,.35));
    transform: translateY(-1px);
}

.wallet-menu-status-dot {
    position: absolute;
    right: 7px;
    bottom: 10px;
    width: 9px;
    height: 9px;
    border: 2px solid rgba(8, 14, 19, .98);
    border-radius: 50%;
    box-sizing: content-box;
    background: #d2a84d;
    box-shadow: 0 0 8px rgba(210,168,77,.72);
    pointer-events: none;
}

.wallet-menu-status-dot.connected {
    background: #40e895;
    box-shadow: 0 0 9px rgba(64,232,149,.85);
}

.wallet-menu-status-dot.disconnected {
    background: #d2a84d;
    box-shadow: 0 0 8px rgba(210,168,77,.72);
}

.wallet-menu-status-dot.error,
.wallet-menu-status-dot.locked {
    background: #ff6969;
    box-shadow: 0 0 9px rgba(255,105,105,.78);
}

.wallet-compact-dropdown {
    position: fixed;
    top: 68px;
    right: 236px;
    z-index: 1450;
    width: 390px;
    overflow: visible;
}

.wallet-compact-dropdown[hidden] {
    display: none !important;
}

.wallet-compact-dropdown .nav-global-wallet {
    position: relative;
    width: 100%;
    margin: 0;
    display: block;
}

.wallet-compact-dropdown .music-wallet-status {
    width: 100%;
    max-width: none;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 6px 8px 6px 10px;
    border-radius: 13px;
    box-shadow:
        0 0 20px rgba(6,217,255,.18),
        0 14px 36px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.wallet-compact-dropdown .music-wallet-details-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: auto;
    width: 450px;
    max-height: calc(100vh - 138px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 15px;
    border-radius: 16px;
}

.wallet-compact-dropdown .music-wallet-details-heading span {
    font-size: 10px;
}

.wallet-compact-dropdown .music-wallet-details-heading strong {
    font-size: 15px;
}

.wallet-compact-dropdown .music-wallet-balance-card strong {
    font-size: 25px;
}

.wallet-compact-dropdown .music-wallet-details-label,
.wallet-compact-dropdown .music-wallet-section-title,
.wallet-compact-dropdown .music-wallet-list,
.wallet-compact-dropdown .music-wallet-network-summary,
.wallet-compact-dropdown .music-wallet-footer-actions button {
    font-size: 12px;
}

.wallet-compact-dropdown .music-wallet-quick-actions button {
    min-height: 52px;
    font-size: 12px;
}

.wallet-compact-dropdown .music-wallet-details-address-row strong {
    font-size: 12px;
}

@media (max-width: 1450px) {
    .wallet-compact-dropdown {
        right: 190px;
    }
}

@media (max-width: 1100px) {
    .wallet-compact-dropdown {
        right: 126px;
        width: 360px;
    }

    .wallet-compact-dropdown .music-wallet-details-panel {
        width: 420px;
    }
}

@media (max-width: 760px) {
    .wallet-compact-dropdown {
        top: 66px;
        left: 8px;
        right: 8px;
        width: auto;
    }

    .wallet-compact-dropdown .music-wallet-details-panel {
        position: fixed;
        top: 126px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: calc(100vh - 136px);
    }
}


/* =========================================================
   WALLET BADGE FULL-WIDTH ALIGNMENT V2
   Compact badge and full panel share the same width/right edge
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 470px;
}

.wallet-compact-dropdown {
    top: 68px !important;
    right: 0 !important;
    left: auto !important;
    width: var(--paxor-wallet-panel-width) !important;
}

.wallet-compact-dropdown .nav-global-wallet {
    width: 100% !important;
}

.wallet-compact-dropdown .music-wallet-status {
    width: 100% !important;
    max-width: none !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 7px 10px 7px 12px !important;
    border-radius: 15px 0 0 15px !important;
    border-right: 0 !important;
}

.wallet-compact-dropdown .music-wallet-details-panel {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
    border-radius: 16px 0 0 16px !important;
    border-right: 0 !important;
}

.wallet-compact-dropdown .music-wallet-details-trigger {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
}

.wallet-compact-dropdown .music-wallet-details-trigger > i {
    font-size: 18px !important;
}

.wallet-compact-dropdown #music-wallet-status-title {
    font-size: 11px !important;
}

.wallet-compact-dropdown #music-wallet-status-detail {
    font-size: 12px !important;
}

.wallet-compact-dropdown .music-network-trigger,
.wallet-compact-dropdown .music-connect-wallet-btn {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 11px !important;
}

.wallet-compact-dropdown .music-network-trigger img {
    width: 23px !important;
    height: 23px !important;
    flex-basis: 23px !important;
}

/* Status dot on the horizontal wallet icon exactly follows badge colors */
.wallet-menu-status-dot {
    width: 8px !important;
    height: 8px !important;
    right: 6px !important;
    bottom: 9px !important;
    border-width: 2px !important;
    background: #f2bd55 !important;
    box-shadow: 0 0 7px rgba(242,189,85,.70) !important;
}

.wallet-menu-status-dot.connected {
    background: #4df2a7 !important;
    box-shadow: 0 0 8px rgba(77,242,167,.78) !important;
}

.wallet-menu-status-dot.error,
.wallet-menu-status-dot.locked {
    background: #ff6b6b !important;
    box-shadow: 0 0 8px rgba(255,107,107,.72) !important;
}

.wallet-menu-status-dot.disconnected {
    background: #f2bd55 !important;
    box-shadow: 0 0 7px rgba(242,189,85,.70) !important;
}

@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: calc(100vw - 8px);
    }

    .wallet-compact-dropdown {
        right: 0 !important;
        left: auto !important;
    }

    .wallet-compact-dropdown .music-wallet-status,
    .wallet-compact-dropdown .music-wallet-details-panel {
        border-radius: 14px 0 0 14px !important;
    }
}


/* =========================================================
   WALLET BADGE LAYOUT FIX V3
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 500px;
}

/* Прижимаем бейдж непосредственно к нижней границе nav */
.wallet-compact-dropdown {
    top: 62px !important;
    right: 0 !important;
    width: var(--paxor-wallet-panel-width) !important;
}

/* Полностью непрозрачный фон бейджа */
.wallet-compact-dropdown .music-wallet-status,
.wallet-compact-dropdown .music-wallet-status.connected,
.wallet-compact-dropdown .music-wallet-status.error {
    min-height: 62px !important;
    height: 62px !important;
    padding: 8px 14px 8px 13px !important;

    background:
        linear-gradient(90deg, #0b2029 0%, #07171e 58%, #071116 100%) !important;

    border-color: rgba(6, 217, 255, 0.54) !important;
    border-right: 0 !important;
    border-radius: 0 0 0 15px !important;

    box-shadow:
        0 0 20px rgba(6, 217, 255, 0.20),
        0 13px 32px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Делаем блок сети длиннее, чтобы помещалось полное название */
.wallet-compact-dropdown .music-network-selector {
    flex: 0 0 190px !important;
    width: 190px !important;
}

.wallet-compact-dropdown .music-network-trigger {
    width: 190px !important;
    max-width: 190px !important;
    min-width: 190px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 5px 11px !important;
    justify-content: flex-start !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    display: block !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-size: 11px !important;
}

/* Кнопка Connect/Disconnect шире и немного отведена от полосы прокрутки */
.wallet-compact-dropdown .music-connect-wallet-btn {
    min-width: 104px !important;
    width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin-right: 8px !important;
    padding: 5px 11px !important;
    font-size: 11px !important;
}

/* Список сетей прижат к правому краю и стал шире */
.wallet-compact-dropdown .music-network-menu {
    right: 0 !important;
    left: auto !important;
    width: 330px !important;
    max-width: 330px !important;
    top: calc(100% + 6px) !important;

    background:
        linear-gradient(180deg, #0c222b 0%, #07151b 100%) !important;

    border-right: 0 !important;
    border-radius: 14px 0 0 14px !important;
}

/* Полная панель почти вплотную к бейджу */
.wallet-compact-dropdown .music-wallet-details-panel {
    top: calc(100% + 2px) !important;
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;

    background:
        linear-gradient(180deg, #0b2029 0%, #07151b 100%) !important;

    border-right: 0 !important;
    border-radius: 0 0 0 16px !important;
}

/* КРУГЛЫЙ ИНДИКАТОР НА КНОПКЕ КОШЕЛЬКА.
   Общее правило .menu-item span скрывало его. */
.nav-wallet-control .wallet-menu-button .wallet-menu-status-dot {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: absolute !important;
    right: 5px !important;
    bottom: 8px !important;
    z-index: 20 !important;

    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 2px solid #071116 !important;
    border-radius: 50% !important;

    transform: none !important;
    pointer-events: none !important;
}

/* Убираем tooltip-оформление с индикатора */
.nav-wallet-control .wallet-menu-button:hover .wallet-menu-status-dot {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 5px !important;
    bottom: 8px !important;

    min-width: 9px !important;
    width: 9px !important;
    height: 9px !important;

    padding: 0 !important;
    border-radius: 50% !important;
    transform: none !important;
}

/* Цвета статуса */
.nav-wallet-control .wallet-menu-status-dot.connected {
    background: #45ed9e !important;
    box-shadow: 0 0 9px rgba(69, 237, 158, 0.88) !important;
}

.nav-wallet-control .wallet-menu-status-dot.disconnected {
    background: #f2bd55 !important;
    box-shadow: 0 0 8px rgba(242, 189, 85, 0.78) !important;
}

.nav-wallet-control .wallet-menu-status-dot.error,
.nav-wallet-control .wallet-menu-status-dot.locked {
    background: #ff6969 !important;
    box-shadow: 0 0 9px rgba(255, 105, 105, 0.80) !important;
}

@media (max-width: 1200px) {
    :root {
        --paxor-wallet-panel-width: 470px;
    }

    .wallet-compact-dropdown .music-network-selector,
    .wallet-compact-dropdown .music-network-trigger {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }
}

@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: 100vw;
    }

    .wallet-compact-dropdown {
        top: 62px !important;
        right: 0 !important;
        left: 0 !important;
    }

    .wallet-compact-dropdown .music-wallet-status {
        border-radius: 0 !important;
    }

    .wallet-compact-dropdown .music-wallet-details-panel {
        position: fixed !important;
        top: 124px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    .wallet-compact-dropdown .music-network-menu {
        position: fixed !important;
        top: 124px !important;
        right: 0 !important;
        left: auto !important;
        width: min(360px, 100vw) !important;
        max-width: min(360px, 100vw) !important;
    }
}


/* =========================================================
   WALLET DETAILS HEADER + BADGE BUTTONS REFINEMENT V4
   ========================================================= */

:root {
    --paxor-status-green: #18c888;
    --paxor-status-green-glow: rgba(24, 200, 136, 0.78);
}

/* Header styled like Contract Settings */
.wallet-compact-dropdown .music-wallet-details-header {
    position: relative;
    min-height: 76px;
    margin: -15px -15px 14px !important;
    padding: 14px 16px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    border: 0 !important;
    border-bottom: 1px solid rgba(38, 217, 168, 0.42) !important;
    border-radius: 16px 0 0 0;

    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 54%),
        radial-gradient(circle at 76% 50%, rgba(24, 200, 136, 0.22), transparent 42%),
        linear-gradient(135deg, #073140 0%, #075469 55%, #0b6b66 100%);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wallet-compact-dropdown .music-wallet-details-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgba(255,255,255,.07), transparent 36%),
        linear-gradient(90deg, transparent, rgba(24,200,136,.08));
}

.wallet-compact-dropdown .music-wallet-details-heading,
.wallet-compact-dropdown .music-wallet-header-actions {
    position: relative;
    z-index: 1;
}

/* Large wallet icon almost full header height */
.wallet-compact-dropdown .music-wallet-details-heading > i {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(38, 217, 168, 0.52);
    border-radius: 14px;

    background:
        linear-gradient(145deg, rgba(24,200,136,.24), rgba(3,125,156,.18)),
        rgba(5, 26, 34, 0.72);

    color: #baffdf !important;
    font-size: 25px !important;

    box-shadow:
        0 0 16px rgba(24, 200, 136, 0.18),
        inset 0 1px 0 rgba(255,255,255,.1);
}

.wallet-compact-dropdown #music-wallet-name {
    color: rgba(223, 255, 244, 0.76) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
}

.wallet-compact-dropdown #music-wallet-details-state {
    margin-top: 5px !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

/* Compact badge controls: equal width and slightly smaller */
.wallet-compact-dropdown .music-network-selector {
    flex: 0 0 154px !important;
    width: 154px !important;
}

.wallet-compact-dropdown .music-network-trigger,
.wallet-compact-dropdown .music-connect-wallet-btn {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 4px 8px !important;
    font-size: 9.5px !important;
    border-radius: 10px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn {
    margin-right: 8px !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    font-size: 9.5px !important;
    max-width: 102px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn span {
    display: inline-block !important;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Network dropdown touches badge but never overlaps */
.wallet-compact-dropdown .music-network-menu {
    top: 100% !important;
    margin-top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 330px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Address row uses only icon copy button */
.wallet-compact-dropdown .music-wallet-address-actions {
    justify-content: flex-end !important;
}

.wallet-compact-dropdown #music-wallet-explorer-link {
    min-width: 122px;
}

/* Remove circles/frames around copy and refresh icons */
.wallet-compact-dropdown .music-copy-wallet-address-btn,
.wallet-compact-dropdown .music-wallet-icon-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wallet-compact-dropdown .music-copy-wallet-address-btn:hover,
.wallet-compact-dropdown .music-wallet-icon-btn:hover {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

/* New connected green color from uploaded NFT image */
.nav-global-wallet .music-wallet-status.connected .music-wallet-state-dot,
.nav-wallet-control .wallet-menu-status-dot.connected,
.nav-global-wallet .music-wallet-rpc-dot.online {
    background: var(--paxor-status-green) !important;
    box-shadow: 0 0 9px var(--paxor-status-green-glow) !important;
}

.nav-global-wallet .music-wallet-status.connected #music-wallet-status-detail {
    color: #62e8b7 !important;
}

/* Slightly more room for connected address text */
.wallet-compact-dropdown .music-wallet-status-text {
    flex: 1 1 auto !important;
    min-width: 70px !important;
}

.wallet-compact-dropdown .music-wallet-address-row {
    max-width: 112px !important;
}

@media (max-width: 1200px) {
    .wallet-compact-dropdown .music-network-selector,
    .wallet-compact-dropdown .music-network-trigger,
    .wallet-compact-dropdown .music-connect-wallet-btn {
        width: 138px !important;
        min-width: 138px !important;
        max-width: 138px !important;
    }

    .wallet-compact-dropdown #music-network-trigger-label {
        max-width: 88px !important;
    }
}


/* =========================================================
   SMART CONTRACTS HEADER + NETWORK PANEL FIX V5
   ========================================================= */

/* Список сетей открывается строго под всем бейджем,
   а не под кнопкой выбора сети */
.wallet-compact-dropdown .music-network-menu {
    position: fixed !important;

    top: 124px !important; /* 62px меню + 62px бейдж */
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
    max-height: calc(100vh - 132px) !important;

    margin: 0 !important;
    padding: 9px !important;

    overflow-y: auto !important;

    border: 1px solid rgba(6, 171, 212, 0.45) !important;
    border-right: 0 !important;
    border-radius: 0 0 0 16px !important;

    background: rgba(10, 14, 18, 1) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.52),
        0 0 20px rgba(6, 171, 212, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;

    z-index: 1600 !important;
}

/* Шапка один в один по принципу .card-header из Smart Contracts */
.wallet-compact-dropdown .music-wallet-details-header {
    position: relative !important;
    overflow: hidden !important;

    width: calc(100% + 30px) !important;
    min-height: 92px !important;

    margin: -15px -15px 17px !important;
    padding: 16px 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;

    border: 2px solid #037d9c !important;
    border-right: 0 !important;
    border-radius: 15px 0 0 15px !important;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.46),
            rgba(0, 0, 0, 0.14) 48%,
            rgba(0, 0, 0, 0.04)
        ),
        radial-gradient(
            circle at 78% 48%,
            rgba(3, 125, 156, 0.42),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            rgba(3, 125, 156, 0.38),
            rgba(4, 22, 32, 0.84)
        ) !important;

    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.48),
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;

    box-sizing: border-box !important;
}

.wallet-compact-dropdown .music-wallet-details-header::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08),
            transparent 42%
        ),
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 32%
        ) !important;

    pointer-events: none !important;
}

.wallet-compact-dropdown .music-wallet-details-header::after {
    display: none !important;
}

/* Значок кошелька без рамки, фона, кружка и контейнера */
.wallet-compact-dropdown .music-wallet-details-heading > i {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font-size: 34px !important;

    text-shadow:
        0 0 9px rgba(255, 255, 255, 0.34),
        0 0 16px rgba(3, 125, 156, 0.48) !important;
}

/* Текст как Contract Settings / Choose a ready-to-use building block */
.wallet-compact-dropdown #music-wallet-name {
    margin: 0 0 6px !important;

    color: #ffffff !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48) !important;
}

.wallet-compact-dropdown #music-wallet-details-state {
    display: block !important;

    margin: 0 !important;

    color: #e8fbff !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

/* Немного увеличиваем иконки копирования и обновления */
.wallet-compact-dropdown .music-copy-wallet-address-btn {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;

    font-size: 17px !important;
}

.wallet-compact-dropdown .music-wallet-icon-btn {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;

    font-size: 18px !important;
}

.wallet-compact-dropdown .music-copy-wallet-address-btn i,
.wallet-compact-dropdown .music-wallet-icon-btn i {
    font-size: inherit !important;
}

/* На мобильном список сетей также начинается строго под бейджем */
@media (max-width: 760px) {
    .wallet-compact-dropdown .music-network-menu {
        position: fixed !important;

        top: 124px !important;
        right: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;
        max-height: calc(100vh - 124px) !important;

        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
    }

    .wallet-compact-dropdown .music-wallet-details-header {
        border-radius: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
    }
}


/* =========================================================
   BADGE OPAQUE + SEAMLESS NETWORK + OUTLINE ICON V6
   ========================================================= */

/* Полностью сплошной фон бейджа без прозрачности */
.wallet-compact-dropdown .music-wallet-status,
.wallet-compact-dropdown .music-wallet-status.connected,
.wallet-compact-dropdown .music-wallet-status.error,
.wallet-compact-dropdown .music-wallet-status.not-connected {
    background: #08171e !important;
    background-image: linear-gradient(
        90deg,
        #0b2631 0%,
        #091c24 48%,
        #07141a 100%
    ) !important;

    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Родитель списка сетей больше не является точкой позиционирования */
.wallet-compact-dropdown .music-network-selector {
    position: static !important;
}

/* Список сетей начинается ровно от нижней границы бейджа */
.wallet-compact-dropdown .music-network-menu {
    position: absolute !important;

    top: 100% !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    transform: none !important;

    border-top: 1px solid rgba(6, 171, 212, 0.45) !important;
    border-right: 0 !important;
    border-radius: 0 0 0 16px !important;

    background: #0a0e12 !important;
    background-image: linear-gradient(
        180deg,
        #0b1d25 0%,
        #090f14 100%
    ) !important;

    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    z-index: 1700 !important;
}

/* Полная панель также ближе к бейджу */
.wallet-compact-dropdown .music-wallet-details-panel {
    top: calc(100% + 1px) !important;
}

/* У шапки закруглены оба края */
.wallet-compact-dropdown .music-wallet-details-header {
    border-radius: 15px !important;
    border-right: 2px solid #037d9c !important;
}

/* Контурный белый значок кошелька с прозрачной серединой */
.wallet-compact-dropdown .music-wallet-details-heading > i {
    color: transparent !important;

    -webkit-text-stroke: 1.35px #ffffff !important;
    text-stroke: 1.35px #ffffff !important;

    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.30),
        0 0 13px rgba(3, 125, 156, 0.42) !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* На случай, если браузер плохо поддерживает text-stroke */
@supports not (-webkit-text-stroke: 1px #fff) {
    .wallet-compact-dropdown .music-wallet-details-heading > i {
        color: #ffffff !important;
        opacity: 0.88 !important;
    }
}

@media (max-width: 760px) {
    .wallet-compact-dropdown .music-network-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        border-radius: 0 !important;
    }

    .wallet-compact-dropdown .music-wallet-details-header {
        border-radius: 15px !important;
        border-left: 2px solid #037d9c !important;
        border-right: 2px solid #037d9c !important;
    }
}


/* =========================================================
   ASSETS + NFT + USD DISPLAY V7
   ========================================================= */

.nav-global-wallet #music-wallet-native-balance-usd {
    display: block;
    margin-top: 5px;
    color: #73e8bd;
    font-size: 12px;
    font-weight: 650;
}

.nav-global-wallet .music-wallet-assets-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 4px;
    padding: 7px 8px;

    border: 1px solid rgba(24, 200, 136, 0.18);
    border-radius: 8px;

    background: rgba(24, 200, 136, 0.055);
    color: rgba(232, 251, 255, 0.68);

    font-size: 10px;
}

.nav-global-wallet .music-wallet-assets-summary strong {
    color: #73e8bd;
    font-size: 12px;
}

.nav-global-wallet .music-wallet-asset-row {
    min-height: 44px;
}

.nav-global-wallet .music-wallet-asset-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.nav-global-wallet .music-wallet-asset-values strong {
    color: #ffffff;
    font-size: 10.5px;
}

.nav-global-wallet .music-wallet-asset-values small {
    margin-top: 3px;
    color: #73e8bd;
    font-size: 9.5px;
}

.nav-global-wallet .music-wallet-nft-summary {
    justify-content: space-between;
    min-height: 48px;
}

.nav-global-wallet .music-wallet-nft-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nav-global-wallet .music-wallet-nft-count strong {
    color: #ffffff;
    font-size: 20px;
}

.nav-global-wallet .music-wallet-nft-count span {
    color: rgba(232, 251, 255, 0.62);
    font-size: 10px;
}

.nav-global-wallet .music-wallet-nft-thumbs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav-global-wallet .music-wallet-nft-thumb,
.nav-global-wallet .music-wallet-nft-fallback {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border: 1px solid rgba(6, 217, 255, 0.28);
    border-radius: 8px;

    object-fit: cover;
    background: rgba(6, 171, 212, 0.08);
}

.nav-global-wallet .music-wallet-nft-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8feeff;
    font-size: 13px;
}


/* =========================================================
   WALLET READABILITY UPDATE V8
   Larger, cleaner typography for USD and assets
   ========================================================= */

.wallet-compact-dropdown,
.wallet-compact-dropdown button,
.wallet-compact-dropdown input,
.wallet-compact-dropdown select {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Native balance */
.wallet-compact-dropdown #music-wallet-native-balance {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
}

/* USD value and current coin rate */
.wallet-compact-dropdown #music-wallet-native-balance-usd {
    margin-top: 7px !important;

    color: #79efc2 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.01em !important;
}

/* Section headings */
.wallet-compact-dropdown .music-wallet-section-title strong {
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.wallet-compact-dropdown .music-wallet-section-title button {
    color: #70ddff !important;

    font-size: 11.5px !important;
    font-weight: 700 !important;
}

/* Assets summary counter */
.wallet-compact-dropdown .music-wallet-assets-summary {
    min-height: 38px !important;
    padding: 9px 11px !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
}

.wallet-compact-dropdown .music-wallet-assets-summary strong {
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Asset rows */
.wallet-compact-dropdown .music-wallet-asset-row {
    min-height: 56px !important;
    padding: 10px 8px !important;
}

.wallet-compact-dropdown .music-wallet-asset-row > span:first-child > strong {
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.wallet-compact-dropdown .music-wallet-asset-row > span:first-child > small {
    margin-top: 4px !important;

    color: rgba(232, 251, 255, 0.60) !important;

    font-size: 10.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Token/native amount on the right */
.wallet-compact-dropdown .music-wallet-asset-values strong {
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.005em !important;
}

/* USD amount for each asset */
.wallet-compact-dropdown .music-wallet-asset-values small {
    margin-top: 5px !important;

    color: #79efc2 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* General list readability */
.wallet-compact-dropdown .music-wallet-list-row {
    font-size: 12.5px !important;
}

.wallet-compact-dropdown .music-wallet-list-row strong {
    font-weight: 750 !important;
}

.wallet-compact-dropdown .music-wallet-list-row small {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

/* NFT count */
.wallet-compact-dropdown .music-wallet-nft-count strong {
    font-size: 24px !important;
    font-weight: 800 !important;
}

.wallet-compact-dropdown .music-wallet-nft-count span {
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

/* Slightly more room between sections */
.wallet-compact-dropdown .music-wallet-mini-section {
    padding: 12px !important;
}

@media (max-width: 760px) {
    .wallet-compact-dropdown #music-wallet-native-balance {
        font-size: 25px !important;
    }

    .wallet-compact-dropdown #music-wallet-native-balance-usd {
        font-size: 13px !important;
    }

    .wallet-compact-dropdown .music-wallet-asset-values strong {
        font-size: 12.5px !important;
    }

    .wallet-compact-dropdown .music-wallet-asset-values small {
        font-size: 11.5px !important;
    }
}


/* =========================================================
   WALLET COMPACT WIDTH UPDATE V9
   Badge, main panel and network list share one compact width
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 440px;
}

/* Общая ширина бейджа */
.wallet-compact-dropdown {
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
}

/* Основная панель */
.wallet-compact-dropdown .music-wallet-details-panel {
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
}

/* Список сетей */
.wallet-compact-dropdown .music-network-menu {
    width: 100% !important;
    max-width: 100% !important;
}

/* Чуть компактнее внутренние горизонтальные элементы */
.wallet-compact-dropdown .music-wallet-status {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.wallet-compact-dropdown .music-network-selector {
    flex-basis: 138px !important;
    width: 138px !important;
}

.wallet-compact-dropdown .music-network-trigger,
.wallet-compact-dropdown .music-connect-wallet-btn {
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    max-width: 86px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn span {
    max-width: 96px !important;
}

/* Адрес получает немного больше места */
.wallet-compact-dropdown .music-wallet-address-row {
    max-width: 126px !important;
}

@media (max-width: 1000px) {
    :root {
        --paxor-wallet-panel-width: 410px;
    }

    .wallet-compact-dropdown .music-network-selector,
    .wallet-compact-dropdown .music-network-trigger,
    .wallet-compact-dropdown .music-connect-wallet-btn {
        width: 126px !important;
        min-width: 126px !important;
        max-width: 126px !important;
    }

    .wallet-compact-dropdown #music-network-trigger-label {
        max-width: 76px !important;
    }
}

@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: 100vw;
    }

    .wallet-compact-dropdown {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}


/* =========================================================
   WALLET WIDTH 400PX UPDATE V10
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 400px;
}

.wallet-compact-dropdown,
.wallet-compact-dropdown .music-wallet-details-panel {
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
}

.wallet-compact-dropdown .music-network-menu {
    width: 100% !important;
    max-width: 100% !important;
}

.wallet-compact-dropdown .music-network-selector,
.wallet-compact-dropdown .music-network-trigger,
.wallet-compact-dropdown .music-connect-wallet-btn {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    max-width: 70px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn span {
    max-width: 82px !important;
}

.wallet-compact-dropdown .music-wallet-address-row {
    max-width: 118px !important;
}

@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: 100vw;
    }

    .wallet-compact-dropdown,
    .wallet-compact-dropdown .music-wallet-details-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}


/* =========================================================
   WALLET WIDTH 380PX UPDATE V11
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 380px;
}

.wallet-compact-dropdown,
.wallet-compact-dropdown .music-wallet-details-panel {
    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
}

.wallet-compact-dropdown .music-network-menu {
    width: 100% !important;
    max-width: 100% !important;
}

.wallet-compact-dropdown .music-network-selector,
.wallet-compact-dropdown .music-network-trigger,
.wallet-compact-dropdown .music-connect-wallet-btn {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    max-width: 64px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn span {
    max-width: 76px !important;
}

.wallet-compact-dropdown .music-wallet-address-row {
    max-width: 108px !important;
}

.wallet-compact-dropdown .music-wallet-status {
    gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: 100vw;
    }

    .wallet-compact-dropdown,
    .wallet-compact-dropdown .music-wallet-details-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}


/* =========================================================
   PAXOR WALLET — OUTLINE ICON
   Возвращена исходная форма Font Awesome wallet.
   Иконка теперь контурная, без сплошной заливки.
   ========================================================= */

/* Общий контур для всех трёх значков кошелька */
.nav-wallet-control .wallet-menu-button > i.fa-wallet,
.nav-global-wallet .music-wallet-details-trigger > i.fa-wallet,
.music-wallet-details-heading > i.fa-wallet {
    color: transparent !important;

    -webkit-text-stroke:
        1.15px rgba(202, 208, 212, 0.76);

    text-shadow:
        0 0 1px rgba(202, 208, 212, 0.20);

    transition:
        -webkit-text-stroke-color 0.18s ease,
        text-shadow 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;

    opacity: 0.92;
}

/* ---------------------------------------------------------
   1. Horizontal menu button
   --------------------------------------------------------- */

.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    font-size: 25px;
}

.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet {
    -webkit-text-stroke-color: rgba(255, 255, 255, 1);

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.34);

    transform: scale(1.06);
    opacity: 1;
}

/* ---------------------------------------------------------
   2. Compact wallet badge trigger
   --------------------------------------------------------- */

.nav-global-wallet .music-wallet-details-trigger > i.fa-wallet {
    font-size: 20px;
}

.nav-global-wallet .music-wallet-details-trigger:hover > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-trigger[aria-expanded="true"] > i.fa-wallet {
    -webkit-text-stroke-color: rgba(255, 255, 255, 1);

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.32);

    transform: scale(1.05);
    opacity: 1;
}

/* ---------------------------------------------------------
   3. Large framed icon in Wallet Details
   --------------------------------------------------------- */

.music-wallet-details-heading > i.fa-wallet {
    -webkit-text-stroke:
        1.25px rgba(202, 208, 212, 0.76);

    font-size: 23px;
}

.music-wallet-details-heading:hover > i.fa-wallet {
    -webkit-text-stroke-color: rgba(255, 255, 255, 1);

    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.34);

    transform: translateY(-1px) scale(1.05);
    opacity: 1;
}

/* Если вокруг большого значка уже есть рамка — делаем её мягче */
.music-wallet-details-heading > i.fa-wallet {
    border-color: rgba(202, 208, 212, 0.34) !important;
}

.music-wallet-details-heading:hover > i.fa-wallet {
    border-color: rgba(255, 255, 255, 0.92) !important;
}

/* ---------------------------------------------------------
   Light theme
   --------------------------------------------------------- */

body.light-theme
.nav-wallet-control .wallet-menu-button > i.fa-wallet,
body.light-theme
.nav-global-wallet .music-wallet-details-trigger > i.fa-wallet,
body.light-theme
.music-wallet-details-heading > i.fa-wallet {
    -webkit-text-stroke-color: rgba(38, 45, 50, 0.68);

    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.10);
}

body.light-theme
.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
body.light-theme
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet,
body.light-theme
.nav-global-wallet .music-wallet-details-trigger:hover > i.fa-wallet,
body.light-theme
.nav-global-wallet
.music-wallet-details-trigger[aria-expanded="true"] > i.fa-wallet,
body.light-theme
.music-wallet-details-heading:hover > i.fa-wallet {
    -webkit-text-stroke-color: rgba(0, 0, 0, 1);

    text-shadow:
        0 0 5px rgba(0, 0, 0, 0.16);
}

/* Fallback для браузеров без text-stroke */
@supports not (-webkit-text-stroke: 1px #fff) {
    .nav-wallet-control .wallet-menu-button > i.fa-wallet,
    .nav-global-wallet .music-wallet-details-trigger > i.fa-wallet,
    .music-wallet-details-heading > i.fa-wallet {
        color: rgba(202, 208, 212, 0.76) !important;
        opacity: 0.78;
    }

    .nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
    .nav-wallet-control .wallet-menu-button.active > i.fa-wallet,
    .nav-global-wallet .music-wallet-details-trigger:hover > i.fa-wallet,
    .music-wallet-details-heading:hover > i.fa-wallet {
        color: #ffffff !important;
        opacity: 1;
    }
}


/* =========================================================
   WALLET ICON — FINAL HEADER + STATUS INDICATOR OVERRIDES
   ========================================================= */

/* ---------------------------------------------------------
   1. Horizontal menu wallet icon
   Transparent center, gray outline by default,
   maximum white outline on hover.
   --------------------------------------------------------- */

.nav-wallet-control .wallet-menu-button,
.nav-wallet-control .wallet-menu-button:hover,
.nav-wallet-control .wallet-menu-button.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke:
        0.82px rgba(198, 204, 208, 0.82) !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    opacity: 1 !important;

    transition:
        -webkit-text-stroke-color 0.18s ease,
        transform 0.18s ease !important;
}

.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke-color: #ffffff !important;

    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    transform: translateY(-1px) scale(1.05) !important;
}

/* ---------------------------------------------------------
   2. Status dot slightly overlaps the wallet icon
   --------------------------------------------------------- */

.nav-wallet-control
.wallet-menu-button
.wallet-menu-status-dot,
.nav-wallet-control
.wallet-menu-button:hover
.wallet-menu-status-dot {
    top: auto !important;
    left: auto !important;

    right: 6px !important;
    bottom: 13px !important;

    z-index: 25 !important;

    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 2px solid #071116 !important;
    border-radius: 50% !important;

    transform: none !important;
    pointer-events: none !important;
}

/* ---------------------------------------------------------
   3. Full wallet panel header icon
   Always maximum white, no hover effect.
   --------------------------------------------------------- */

.wallet-compact-dropdown
.music-wallet-details-heading > i.fa-wallet,
.wallet-compact-dropdown
.music-wallet-details-heading:hover > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading:hover > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke:
        1px #ffffff !important;

    background: transparent !important;
    background-color: transparent !important;

    border-color: rgba(255, 255, 255, 0.42) !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Light theme:
   horizontal icon becomes black on hover,
   but the full wallet panel header remains white. */

body.light-theme
.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    -webkit-text-stroke-color:
        rgba(34, 39, 43, 0.72) !important;
}

body.light-theme
.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
body.light-theme
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet {
    -webkit-text-stroke-color: #000000 !important;
}

body.light-theme
.wallet-compact-dropdown
.music-wallet-details-heading > i.fa-wallet,
body.light-theme
.wallet-compact-dropdown
.music-wallet-details-heading:hover > i.fa-wallet,
body.light-theme
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading > i.fa-wallet,
body.light-theme
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading:hover > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke-color: #ffffff !important;

    transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}


/* =========================================================
   WALLET BADGE — DARKER BACKGROUND, CLEAN ICON, TOOLTIP FIX
   ========================================================= */

/* ---------------------------------------------------------
   1. Slightly darker compact wallet badge background
   --------------------------------------------------------- */

.wallet-compact-dropdown .music-wallet-status,
.wallet-compact-dropdown .music-wallet-status.connected,
.wallet-compact-dropdown .music-wallet-status.not-connected,
.wallet-compact-dropdown .music-wallet-status.error {
    background:
        linear-gradient(
            90deg,
            #081820 0%,
            #040f14 58%,
            #02090d 100%
        ) !important;

    box-shadow:
        0 0 18px rgba(6, 217, 255, 0.14),
        0 13px 32px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

/* ---------------------------------------------------------
   2. Remove every frame/background around wallet icon
      inside the compact badge
   --------------------------------------------------------- */

.wallet-compact-dropdown .music-wallet-details-trigger,
.wallet-compact-dropdown .music-wallet-details-trigger:hover,
.wallet-compact-dropdown
.music-wallet-details-trigger[aria-expanded="true"],
.nav-global-wallet .music-wallet-details-trigger,
.nav-global-wallet .music-wallet-details-trigger:hover,
.nav-global-wallet
.music-wallet-details-trigger[aria-expanded="true"] {
    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    box-shadow: none !important;
    outline: none !important;

    transform: none !important;
}

/* Keep only the icon itself interactive */
.wallet-compact-dropdown .music-wallet-details-trigger > i.fa-wallet,
.nav-global-wallet .music-wallet-details-trigger > i.fa-wallet {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

/* ---------------------------------------------------------
   3. Larger icon in the full wallet panel header
   --------------------------------------------------------- */

.wallet-compact-dropdown
.music-wallet-details-heading > i.fa-wallet,
.wallet-compact-dropdown
.music-wallet-details-heading:hover > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading:hover > i.fa-wallet {
    font-size: 29px !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1px #ffffff !important;

    transform: none !important;
    transition: none !important;
}

/* ---------------------------------------------------------
   4. Horizontal menu tooltips above opened wallet panel
   --------------------------------------------------------- */

/* Center menu is painted above the wallet dropdown */
nav > .menu-center {
    z-index: 1700 !important;
}

/* Hovered right-side controls rise above the wallet panel */
nav > .menu-right {
    z-index: 1600 !important;
}

nav > .menu-right > li {
    position: relative;
}

nav > .menu-right > li:hover,
nav > .menu-right > li:focus-within {
    z-index: 1900 !important;
}

/* All menu tooltip texts stay above the wallet frame */
.menu-item:hover span,
.calculator-menu-button:hover .calculator-tooltip,
.notification-button:hover .notification-tooltip,
.menu-toggle-btn:hover .menu-tooltip {
    z-index: 2200 !important;
}

/* Wallet status dot is not treated as a tooltip */
.nav-wallet-control
.wallet-menu-button:hover
.wallet-menu-status-dot {
    z-index: 25 !important;
}

/* Mobile: no stacking jump needed when center menu is hidden */
@media (max-width: 760px) {
    nav > .menu-center {
        z-index: 2 !important;
    }
}


/* =========================================================
   WALLET PANEL CORNER + BADGE ICON TRANSPARENCY FIX
   ========================================================= */

/* ---------------------------------------------------------
   1. Full wallet panel:
   remove the visible top-right corner near the header.
   --------------------------------------------------------- */

.wallet-compact-dropdown .music-wallet-details-panel {
    overflow: hidden !important;
}

.wallet-compact-dropdown .music-wallet-details-header {
    width: auto !important;
    min-height: 92px !important;

    margin: -15px -15px 17px !important;
    padding: 16px 22px !important;

    border: 2px solid #037d9c !important;
    border-bottom: 1px solid rgba(3, 125, 156, 0.68) !important;
    border-radius: 13px 13px 0 0 !important;

    box-sizing: border-box !important;
}

/* Slightly soften the far right edge so the corner never peeks out */
.wallet-compact-dropdown .music-wallet-details-header::before {
    border-radius: 13px 13px 0 0 !important;
}

.wallet-compact-dropdown .music-wallet-details-header::after {
    display: none !important;
}

/* ---------------------------------------------------------
   2. Compact badge wallet icon:
   true transparent center, no gray backing at all.
   --------------------------------------------------------- */

.wallet-compact-dropdown .music-wallet-details-trigger,
.wallet-compact-dropdown .music-wallet-details-trigger:hover,
.wallet-compact-dropdown .music-wallet-details-trigger:focus,
.wallet-compact-dropdown .music-wallet-details-trigger[aria-expanded="true"],
.nav-global-wallet .music-wallet-details-trigger,
.nav-global-wallet .music-wallet-details-trigger:hover,
.nav-global-wallet .music-wallet-details-trigger:focus,
.nav-global-wallet .music-wallet-details-trigger[aria-expanded="true"] {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
}

/* Icon only: thin gray outline, transparent fill */
.wallet-compact-dropdown .music-wallet-details-trigger > i.fa-wallet,
.nav-global-wallet .music-wallet-details-trigger > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke: 0.74px rgba(205, 211, 215, 0.88) !important;

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    border: 0 !important;

    opacity: 1 !important;
}

/* Hover: contour becomes clean white, still with no background */
.wallet-compact-dropdown .music-wallet-details-trigger:hover > i.fa-wallet,
.wallet-compact-dropdown .music-wallet-details-trigger[aria-expanded="true"] > i.fa-wallet,
.nav-global-wallet .music-wallet-details-trigger:hover > i.fa-wallet,
.nav-global-wallet .music-wallet-details-trigger[aria-expanded="true"] > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke-color: #ffffff !important;

    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
}

/* Also keep the full panel header icon slightly larger as requested */
.wallet-compact-dropdown .music-wallet-details-heading > i.fa-wallet,
.wallet-compact-dropdown .music-wallet-details-heading:hover > i.fa-wallet,
.nav-global-wallet .music-wallet-details-panel .music-wallet-details-heading > i.fa-wallet,
.nav-global-wallet .music-wallet-details-panel .music-wallet-details-heading:hover > i.fa-wallet {
    font-size: 31px !important;
}


/* =========================================================
   WALLET HEADER — LARGER ICON + HIDDEN LOWER FRAME CORNERS
   ========================================================= */

/* Нижняя рамка больше не имеет верхней границы:
   возле закруглений шапки нечему выглядывать */
.wallet-compact-dropdown .music-wallet-details-panel {
    border-top: 0 !important;
    border-top-left-radius: 13px !important;
    border-top-right-radius: 13px !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
}

/* Шапка полностью закрывает верх панели */
.wallet-compact-dropdown .music-wallet-details-header {
    width: calc(100% + 30px) !important;
    margin: -15px -15px 17px !important;

    border: 2px solid #037d9c !important;
    border-radius: 13px 13px 0 0 !important;

    background-clip: padding-box !important;
    overflow: hidden !important;
}

/* Убираем даже возможную тонкую линию нижней панели
   под верхними углами шапки */
.wallet-compact-dropdown .music-wallet-details-panel::before,
.wallet-compact-dropdown .music-wallet-details-panel::after {
    border-top: 0 !important;
    box-shadow: none !important;
}

/* Значок кошелька в шапке делаем заметно крупнее */
.wallet-compact-dropdown
.music-wallet-details-heading > i.fa-wallet,
.wallet-compact-dropdown
.music-wallet-details-heading:hover > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading > i.fa-wallet,
.nav-global-wallet
.music-wallet-details-panel
.music-wallet-details-heading:hover > i.fa-wallet {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 39px !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1.05px #ffffff !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    transform: none !important;
    transition: none !important;
}

/* Немного увеличиваем расстояние между значком и текстом */
.wallet-compact-dropdown .music-wallet-details-heading {
    gap: 14px !important;
}


/* =========================================================
   WALLET DETAILS PANEL — RESTORE SCROLLING
   ========================================================= */

/* Возвращаем вертикальную прокрутку.
   Верхние углы теперь формирует сама шапка, а не нижняя панель. */
.wallet-compact-dropdown .music-wallet-details-panel {
    overflow-x: hidden !important;
    overflow-y: auto !important;

    border-top: 0 !important;
    border-radius: 0 0 13px 13px !important;

    clip-path: none !important;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(6, 217, 255, 0.46)
        rgba(255, 255, 255, 0.055);
}

/* Шапка остаётся поверх боковых границ панели */
.wallet-compact-dropdown .music-wallet-details-header {
    position: relative !important;
    z-index: 3 !important;

    overflow: hidden !important;
    border-radius: 13px 13px 0 0 !important;
}

/* WebKit scrollbar */
.wallet-compact-dropdown .music-wallet-details-panel::-webkit-scrollbar {
    width: 8px;
}

.wallet-compact-dropdown .music-wallet-details-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
}

.wallet-compact-dropdown .music-wallet-details-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(6, 217, 255, 0.42);
}

.wallet-compact-dropdown .music-wallet-details-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 217, 255, 0.62);
}


/* =========================================================
   WALLET LOWER FRAME — ROUNDED TOP CORNERS
   Прокрутка сохраняется, выступающий угол нижней рамки скрыт.
   ========================================================= */

.wallet-compact-dropdown .music-wallet-details-panel {
    overflow-x: hidden !important;
    overflow-y: auto !important;

    border-top-color: transparent !important;
    border-top-left-radius: 13px !important;
    border-top-right-radius: 13px !important;
    border-bottom-left-radius: 13px !important;
    border-bottom-right-radius: 13px !important;

    background-clip: padding-box !important;

    /* Закругляет фактический внешний край, не отключая scroll */
    clip-path: inset(0 round 13px) !important;
}

/* Шапка совпадает с закруглением нижней рамки */
.wallet-compact-dropdown .music-wallet-details-header {
    width: calc(100% + 30px) !important;
    margin: -15px -15px 17px !important;

    border-radius: 13px 13px 0 0 !important;
    background-clip: padding-box !important;

    position: relative !important;
    z-index: 4 !important;
}

/* Убираем возможную линию рамки прямо под углами шапки */
.wallet-compact-dropdown .music-wallet-details-panel::before,
.wallet-compact-dropdown .music-wallet-details-panel::after {
    border-top-left-radius: 13px !important;
    border-top-right-radius: 13px !important;
    border-top-color: transparent !important;
}


/* =========================================================
   HORIZONTAL MENU — ENVELOPE OUTLINE ICON
   Толщина и цвет как у контурного значка кошелька.
   ========================================================= */

.notification-button,
.notification-button:hover,
.notification-button.active,
.notification-button:focus,
.notification-button:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Контурный конверт без сплошной заливки */
.notification-button > i,
.notification-button > i.fa-envelope,
.notification-button > i.fa-envelope-open,
.notification-button > i.fa-message {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke:
        0.82px rgba(198, 204, 208, 0.82) !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    opacity: 1 !important;

    transition:
        -webkit-text-stroke-color 0.18s ease,
        transform 0.18s ease !important;
}

/* При наведении — максимально белый, не голубой */
.notification-button:hover > i,
.notification-button.active > i,
.notification-button:focus-visible > i {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke-color: #ffffff !important;

    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    transform: scale(1.05) !important;
}

/* Переопределяем старый голубой hover */
.notification-button:hover,
.notification-button.active,
body.light-theme .notification-button:hover,
body.light-theme .notification-button.active,
.light-theme .notification-button:hover,
.light-theme .notification-button.active {
    color: inherit !important;
}

/* Светлая тема — как у значка кошелька */
body.light-theme .notification-button > i,
.light-theme .notification-button > i {
    -webkit-text-stroke-color:
        rgba(34, 39, 43, 0.72) !important;
}

body.light-theme .notification-button:hover > i,
body.light-theme .notification-button.active > i,
.light-theme .notification-button:hover > i,
.light-theme .notification-button.active > i {
    -webkit-text-stroke-color: #000000 !important;
}


/* =========================================================
   HORIZONTAL MENU — ENVELOPE SINGLE CONTOUR FIX
   Убирает двойную обводку с regular-иконки конверта.
   ========================================================= */

.music-messages-menu-button > i.fa-envelope,
.music-messages-menu-button:hover > i.fa-envelope,
.music-messages-menu-button.active > i.fa-envelope,
.music-messages-menu-button:focus-visible > i.fa-envelope {
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;

    -webkit-text-fill-color: currentColor !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;

    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;

    opacity: 1 !important;

    transition:
        color 0.18s ease,
        transform 0.18s ease !important;
}

/* Одна тонкая серовато-белая линия */
.music-messages-menu-button > i.fa-envelope {
    color: rgba(198, 204, 208, 0.82) !important;
}

/* При наведении — чисто белый */
.music-messages-menu-button:hover > i.fa-envelope,
.music-messages-menu-button.active > i.fa-envelope,
.music-messages-menu-button:focus-visible > i.fa-envelope {
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Светлая тема */
body.light-theme
.music-messages-menu-button > i.fa-envelope,
.light-theme
.music-messages-menu-button > i.fa-envelope {
    color: rgba(34, 39, 43, 0.72) !important;
}

body.light-theme
.music-messages-menu-button:hover > i.fa-envelope,
body.light-theme
.music-messages-menu-button.active > i.fa-envelope,
.light-theme
.music-messages-menu-button:hover > i.fa-envelope,
.light-theme
.music-messages-menu-button.active > i.fa-envelope {
    color: #000000 !important;
}


/* =========================================================
   HORIZONTAL MENU — ULTRA-THIN SVG ENVELOPE
   Одна чистая тонкая линия без Font Awesome.
   ========================================================= */

.music-messages-menu-button {
    color: rgba(198, 204, 208, 0.82) !important;
}

.music-messages-menu-button:hover,
.music-messages-menu-button.active,
.music-messages-menu-button:focus-visible {
    color: #ffffff !important;
}

.music-messages-menu-button .music-envelope-icon {
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;

    display: block !important;
    overflow: visible !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.25 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;

    pointer-events: none !important;

    transition:
        color 0.18s ease,
        transform 0.18s ease !important;
}

.music-messages-menu-button:hover .music-envelope-icon,
.music-messages-menu-button.active .music-envelope-icon,
.music-messages-menu-button:focus-visible .music-envelope-icon {
    transform: scale(1.05) !important;
}

/* Старую Font Awesome-иконку в этой кнопке не показываем,
   если она случайно осталась в кэше или другом шаблоне */
.music-messages-menu-button > i.fa-envelope {
    display: none !important;
}

/* Светлая тема */
body.light-theme .music-messages-menu-button,
.light-theme .music-messages-menu-button {
    color: rgba(34, 39, 43, 0.72) !important;
}

body.light-theme .music-messages-menu-button:hover,
body.light-theme .music-messages-menu-button.active,
.light-theme .music-messages-menu-button:hover,
.light-theme .music-messages-menu-button.active {
    color: #000000 !important;
}


/* =========================================================
   HORIZONTAL MENU — VISIBLE THIN ENVELOPE
   Работает и со старым menu.html, и с новым SVG-вариантом.
   ========================================================= */

.music-messages-menu-button {
    position: relative !important;
    color: rgba(198, 204, 208, 0.82) !important;
}

/* Скрываем обе возможные старые версии значка */
.music-messages-menu-button > i.fa-envelope,
.music-messages-menu-button > .music-envelope-icon {
    display: none !important;
}

/* Рисуем конверт независимо от HTML */
.music-messages-menu-button::before {
    content: "" !important;

    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;

    display: block !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.25' y='5.75' width='17.5' height='12.5' rx='2.15' fill='none' stroke='black' stroke-width='1.22' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.25 7.2 12 13.15 19.75 7.2' fill='none' stroke='black' stroke-width='1.22' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.25' y='5.75' width='17.5' height='12.5' rx='2.15' fill='none' stroke='black' stroke-width='1.22' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.25 7.2 12 13.15 19.75 7.2' fill='none' stroke='black' stroke-width='1.22' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;

    -webkit-mask-size: contain !important;
    mask-size: contain !important;

    opacity: 1 !important;
    pointer-events: none !important;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease !important;
}

/* При наведении — максимально белый */
.music-messages-menu-button:hover,
.music-messages-menu-button.active,
.music-messages-menu-button:focus-visible {
    color: #ffffff !important;
}

.music-messages-menu-button:hover::before,
.music-messages-menu-button.active::before,
.music-messages-menu-button:focus-visible::before {
    transform: scale(1.05) !important;
}

/* Светлая тема */
body.light-theme .music-messages-menu-button,
.light-theme .music-messages-menu-button {
    color: rgba(34, 39, 43, 0.72) !important;
}

body.light-theme .music-messages-menu-button:hover,
body.light-theme .music-messages-menu-button.active,
.light-theme .music-messages-menu-button:hover,
.light-theme .music-messages-menu-button.active {
    color: #000000 !important;
}


/* =========================================================
   RIGHT HORIZONTAL MENU — UNIFIED THIN OUTLINE ICONS
   Конверт / калькулятор / аккаунт / три точки
   ========================================================= */

:root {
    --paxor-top-icon-color: rgba(198, 204, 208, 0.82);
    --paxor-top-icon-hover: #ffffff;
}

body.light-theme {
    --paxor-top-icon-color: rgba(34, 39, 43, 0.72);
    --paxor-top-icon-hover: #000000;
}

/* ---------------------------------------------------------
   Общий цвет правых контурных значков
   --------------------------------------------------------- */

.music-messages-menu-button,
.calculator-menu-button,
.menu-toggle-btn,
#account-button {
    color: var(--paxor-top-icon-color) !important;
}

.music-messages-menu-button:hover,
.music-messages-menu-button.active,
.music-messages-menu-button:focus-visible,
.calculator-menu-button:hover,
.calculator-menu-button.active,
.calculator-menu-button:focus-visible,
.menu-toggle-btn:hover,
.menu-toggle-btn.active,
.menu-toggle-btn:focus-visible,
#account-button:hover,
#account-button.active,
#account-button:focus-visible {
    color: var(--paxor-top-icon-hover) !important;
}

/* ---------------------------------------------------------
   1. Конверт — увеличен до размера остальных значков
   --------------------------------------------------------- */

.music-messages-menu-button::before {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.9' y='5.3' width='18.2' height='13.4' rx='2.25' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 6.9 12 13.15 20 6.9' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.9' y='5.3' width='18.2' height='13.4' rx='2.25' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 6.9 12 13.15 20 6.9' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* ---------------------------------------------------------
   2. Калькулятор — тонкий контур вместо залитой FA-иконки
   --------------------------------------------------------- */

.calculator-menu-button > i {
    display: none !important;
}

.calculator-menu-button::before {
    content: "" !important;

    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;

    display: block !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='2.8' width='16' height='18.4' rx='2.5' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='6.6' y='5.4' width='10.8' height='3.5' rx='0.8' fill='none' stroke='black' stroke-width='1.08'/%3E%3Ccircle cx='7.4' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='12' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='16.6' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='7.4' cy='16.6' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='12' cy='16.6' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Crect x='15.7' y='15.7' width='1.8' height='1.8' rx='0.45' fill='none' stroke='black' stroke-width='1.05'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='2.8' width='16' height='18.4' rx='2.5' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='6.6' y='5.4' width='10.8' height='3.5' rx='0.8' fill='none' stroke='black' stroke-width='1.08'/%3E%3Ccircle cx='7.4' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='12' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='16.6' cy='12.1' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='7.4' cy='16.6' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Ccircle cx='12' cy='16.6' r='0.75' fill='none' stroke='black' stroke-width='1.05'/%3E%3Crect x='15.7' y='15.7' width='1.8' height='1.8' rx='0.45' fill='none' stroke='black' stroke-width='1.05'/%3E%3C/svg%3E") !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;

    pointer-events: none !important;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease !important;
}

.calculator-menu-button:hover::before,
.calculator-menu-button.active::before,
.calculator-menu-button:focus-visible::before {
    transform: scale(1.05) !important;
}

/* ---------------------------------------------------------
   3. Три точки — три тонких контурных кружка
   --------------------------------------------------------- */

.menu-toggle-btn > i {
    display: none !important;
}

.menu-toggle-btn::before {
    content: "" !important;

    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;

    display: block !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3Ccircle cx='12' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3Ccircle cx='18.5' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5.5' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3Ccircle cx='12' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3Ccircle cx='18.5' cy='12' r='1.65' fill='none' stroke='black' stroke-width='1.15'/%3E%3C/svg%3E") !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;

    pointer-events: none !important;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease !important;
}

.menu-toggle-btn:hover::before,
.menu-toggle-btn.active::before,
.menu-toggle-btn:focus-visible::before {
    transform: scale(1.05) !important;
}

/* ---------------------------------------------------------
   4. Аккаунт — контурный пользователь вместо залитой картинки
   Только когда используется стандартный account.png/account2.png.
   Настоящий пользовательский аватар не меняется.
   --------------------------------------------------------- */

#account-button:has(> img.account-avatar[src*="account.png"])
> img.account-avatar,
#account-button:has(> img.account-avatar[src*="account2.png"])
> img.account-avatar {
    display: none !important;
}

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    content: "" !important;

    width: 29px !important;
    height: 29px !important;
    flex: 0 0 29px !important;

    display: block !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.3' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.3 20c.55-4.15 3.1-6.35 6.7-6.35s6.15 2.2 6.7 6.35' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='3.3' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.3 20c.55-4.15 3.1-6.35 6.7-6.35s6.15 2.2 6.7 6.35' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;

    pointer-events: none !important;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease !important;
}

#account-button:has(> img.account-avatar[src*="account.png"]):hover::before,
#account-button:has(> img.account-avatar[src*="account2.png"]):hover::before,
#account-button.active:has(> img.account-avatar[src*="account.png"])::before,
#account-button.active:has(> img.account-avatar[src*="account2.png"])::before {
    transform: scale(1.05) !important;
}

/* Маленькая стрелка аккаунта — без сплошной тёмной заливки */
#account-button::after,
#account-button:hover::after,
#account-button.active::after {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;

    border-color: var(--paxor-top-icon-color) !important;
    color: var(--paxor-top-icon-color) !important;
}

#account-button:hover::after,
#account-button.active::after {
    border-color: var(--paxor-top-icon-hover) !important;
    color: var(--paxor-top-icon-hover) !important;
}

/* Убираем старый голубой hover у калькулятора и меню */
.calculator-menu-button:hover,
.calculator-menu-button.active,
.menu-toggle-btn:hover,
.menu-toggle-btn.active {
    color: var(--paxor-top-icon-hover) !important;
}


/* =========================================================
   RIGHT MENU — ACTIVE WHITE + LARGER ACCOUNT ICON
   ========================================================= */

/* ---------------------------------------------------------
   1. Активный/нажатый значок остаётся максимально белым
   --------------------------------------------------------- */

.music-messages-menu-button.active,
.music-messages-menu-button[aria-expanded="true"],
.calculator-menu-button.active,
.calculator-menu-button[aria-expanded="true"],
.menu-toggle-btn.active,
.menu-toggle-btn[aria-expanded="true"],
#account-button.active,
#account-button[aria-expanded="true"] {
    color: #ffffff !important;
}

/* Активный конверт */
.music-messages-menu-button.active::before,
.music-messages-menu-button[aria-expanded="true"]::before {
    background-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Активный калькулятор */
.calculator-menu-button.active::before,
.calculator-menu-button[aria-expanded="true"]::before {
    background-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Активное меню с тремя точками */
.menu-toggle-btn.active::before,
.menu-toggle-btn[aria-expanded="true"]::before {
    background-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Активный стандартный значок аккаунта */
#account-button.active::before,
#account-button[aria-expanded="true"]::before {
    background-color: #ffffff !important;
}

/* Активная стрелка аккаунта */
#account-button.active::after,
#account-button[aria-expanded="true"]::after {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* ---------------------------------------------------------
   2. Значок аккаунта крупнее остальных
   --------------------------------------------------------- */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
}

/* Немного расширяем место под увеличенный значок */
.nav-account .menu-item,
#account-button {
    width: 56px !important;
}

/* Стрелка не перекрывает увеличенный значок */
#account-button::after {
    right: 1px !important;
    bottom: 7px !important;
}

/* ---------------------------------------------------------
   3. Светлая тема — активные значки чёрные
   --------------------------------------------------------- */

body.light-theme .music-messages-menu-button.active,
body.light-theme .music-messages-menu-button[aria-expanded="true"],
body.light-theme .calculator-menu-button.active,
body.light-theme .calculator-menu-button[aria-expanded="true"],
body.light-theme .menu-toggle-btn.active,
body.light-theme .menu-toggle-btn[aria-expanded="true"],
body.light-theme #account-button.active,
body.light-theme #account-button[aria-expanded="true"],
.light-theme .music-messages-menu-button.active,
.light-theme .music-messages-menu-button[aria-expanded="true"],
.light-theme .calculator-menu-button.active,
.light-theme .calculator-menu-button[aria-expanded="true"],
.light-theme .menu-toggle-btn.active,
.light-theme .menu-toggle-btn[aria-expanded="true"],
.light-theme #account-button.active,
.light-theme #account-button[aria-expanded="true"] {
    color: #000000 !important;
}

body.light-theme .music-messages-menu-button.active::before,
body.light-theme .music-messages-menu-button[aria-expanded="true"]::before,
body.light-theme .calculator-menu-button.active::before,
body.light-theme .calculator-menu-button[aria-expanded="true"]::before,
body.light-theme .menu-toggle-btn.active::before,
body.light-theme .menu-toggle-btn[aria-expanded="true"]::before,
body.light-theme #account-button.active::before,
body.light-theme #account-button[aria-expanded="true"]::before,
.light-theme .music-messages-menu-button.active::before,
.light-theme .music-messages-menu-button[aria-expanded="true"]::before,
.light-theme .calculator-menu-button.active::before,
.light-theme .calculator-menu-button[aria-expanded="true"]::before,
.light-theme .menu-toggle-btn.active::before,
.light-theme .menu-toggle-btn[aria-expanded="true"]::before,
.light-theme #account-button.active::before,
.light-theme #account-button[aria-expanded="true"]::before {
    background-color: #000000 !important;
}

body.light-theme #account-button.active::after,
body.light-theme #account-button[aria-expanded="true"]::after,
.light-theme #account-button.active::after,
.light-theme #account-button[aria-expanded="true"]::after {
    color: #000000 !important;
    border-color: #000000 !important;
}


/* =========================================================
   RIGHT MENU — REAL OPEN STATE + BIGGER ACCOUNT PROPORTIONS
   ========================================================= */

/* ---------------------------------------------------------
   1. Конверт остаётся белым, пока popover действительно открыт
   --------------------------------------------------------- */

.music-messages-top:has(#music-messages-popover:not([hidden]))
.music-messages-menu-button {
    color: #ffffff !important;
}

.music-messages-top:has(#music-messages-popover:not([hidden]))
.music-messages-menu-button::before {
    background-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* ---------------------------------------------------------
   2. Три точки остаются белыми, пока verticalMenu открыт
   --------------------------------------------------------- */

body:has(#verticalMenu.open) #toggleMenu,
body:has(.vertical-menu.open) .menu-toggle-btn {
    color: #ffffff !important;
}

body:has(#verticalMenu.open) #toggleMenu::before,
body:has(.vertical-menu.open) .menu-toggle-btn::before {
    background-color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* ---------------------------------------------------------
   3. Аккаунт — больше значок и более крупная голова
   --------------------------------------------------------- */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;

    background-color: currentColor !important;

    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.4' r='4.15' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.6 20c.5-3.95 2.45-5.9 5.4-5.9s4.9 1.95 5.4 5.9' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.4' r='4.15' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.6 20c.5-3.95 2.45-5.9 5.4-5.9s4.9 1.95 5.4 5.9' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
}

/* Даём крупному значку достаточно места */
.nav-account .menu-item,
#account-button {
    width: 64px !important;
}

/* Стрелку отводим дальше от крупного значка */
#account-button::after {
    right: 0 !important;
    bottom: 6px !important;
}

/* Аккаунт остаётся белым по фактически открытому меню */
body:has(#account-menu.open) #account-button {
    color: #ffffff !important;
}

body:has(#account-menu.open)
#account-button:has(> img.account-avatar[src*="account.png"])::before,
body:has(#account-menu.open)
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    background-color: #ffffff !important;
    transform: scale(1.04) !important;
}

body:has(#account-menu.open) #account-button::after {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* ---------------------------------------------------------
   4. Светлая тема
   --------------------------------------------------------- */

body.light-theme
.music-messages-top:has(#music-messages-popover:not([hidden]))
.music-messages-menu-button,
body.light-theme:has(#verticalMenu.open) #toggleMenu,
body.light-theme:has(.vertical-menu.open) .menu-toggle-btn,
body.light-theme:has(#account-menu.open) #account-button {
    color: #000000 !important;
}

body.light-theme
.music-messages-top:has(#music-messages-popover:not([hidden]))
.music-messages-menu-button::before,
body.light-theme:has(#verticalMenu.open) #toggleMenu::before,
body.light-theme:has(.vertical-menu.open) .menu-toggle-btn::before,
body.light-theme:has(#account-menu.open)
#account-button:has(> img.account-avatar[src*="account.png"])::before,
body.light-theme:has(#account-menu.open)
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    background-color: #000000 !important;
}

body.light-theme:has(#account-menu.open) #account-button::after {
    color: #000000 !important;
    border-color: #000000 !important;
}


/* =========================================================
   ACCOUNT ICON — PROPORTION ADJUSTMENT
   Голова немного меньше, туловище крупнее.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.3' r='3.65' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.45 20.25c.55-4.45 2.95-6.55 6.55-6.55s6 2.1 6.55 6.55' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.3' r='3.65' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.45 20.25c.55-4.45 2.95-6.55 6.55-6.55s6 2.1 6.55 6.55' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}


/* =========================================================
   ACCOUNT ICON — SLIGHTLY LARGER HEAD
   Небольшая финальная корректировка пропорций.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.3' r='3.85' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.45 20.25c.55-4.45 2.95-6.55 6.55-6.55s6 2.1 6.55 6.55' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.3' r='3.85' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.45 20.25c.55-4.45 2.95-6.55 6.55-6.55s6 2.1 6.55 6.55' fill='none' stroke='black' stroke-width='1.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}


/* =========================================================
   ACCOUNT DROPDOWN — SLIGHTLY LARGER EVERYTHING
   Увеличено только выпадающее меню аккаунта.
   ========================================================= */

/* Основная рамка шире и просторнее */
.account-menu {
    width: 305px !important;
    max-width: calc(100vw - 12px) !important;

    padding: 26px 17px 20px !important;

    border-radius: 0 0 17px 17px !important;

    box-shadow:
        0 0 28px rgba(6, 171, 212, 0.24),
        0 20px 54px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

/* Внутренние рамки пунктов */
.account-menu ul li {
    min-height: 48px !important;
    height: 48px !important;

    margin: 7px 0 !important;
    padding: 8px 13px 8px 52px !important;

    border-radius: 14px !important;
}

/* Круглая рамка вокруг иконки */
.account-menu ul li::before {
    left: 9px !important;

    width: 33px !important;
    height: 33px !important;

    border-radius: 50% !important;
}

/* Сами иконки */
.account-menu ul li i {
    left: 9px !important;

    width: 33px !important;
    height: 33px !important;

    font-size: 14px !important;
}

/* Текст пунктов */
.account-menu ul li a,
.account-menu .logout-btn {
    padding-left: 11px !important;

    font-size: 14.5px !important;
    font-weight: 550 !important;
    line-height: 1.25 !important;
}

/* Немного больше расстояние между пунктами */
.account-menu ul {
    gap: 2px !important;
}

/* Чуть более заметный скроллбар */
.account-menu::-webkit-scrollbar {
    width: 9px !important;
}

.account-menu::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
}

/* На средних экранах сохраняем увеличенный вид,
   но не даём панели занимать слишком много места */
@media (max-width: 760px) {
    .account-menu {
        width: 280px !important;
        padding: 22px 14px 18px !important;
    }

    .account-menu ul li {
        min-height: 46px !important;
        height: 46px !important;
        padding-left: 49px !important;
    }

    .account-menu ul li::before,
    .account-menu ul li i {
        width: 31px !important;
        height: 31px !important;
    }

    .account-menu ul li a,
    .account-menu .logout-btn {
        font-size: 14px !important;
    }
}

/* На совсем узком экране панель остаётся во всю ширину */
@media (max-width: 420px) {
    .account-menu {
        width: 100% !important;
        max-width: none !important;
    }
}


/* =========================================================
   UNIFIED RIGHT DROPDOWN PANELS
   Аккаунт / три точки / уведомления / язык / сообщения
   ========================================================= */

:root {
    --paxor-right-panel-width: 305px;
    --paxor-right-panel-top: 62px;
    --paxor-right-panel-radius: 17px;
    --paxor-right-panel-item-height: 48px;
    --paxor-right-panel-icon-box: 33px;
    --paxor-right-panel-font-size: 14.5px;
}

/* ---------------------------------------------------------
   1. Одинаковая внешняя рамка, размер, цвет и положение
   --------------------------------------------------------- */

.account-menu,
.vertical-menu,
.language-menu,
.notification-dropdown,
.music-messages-popover {
    position: fixed !important;
    top: var(--paxor-right-panel-top) !important;
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-right-panel-width) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100vh - var(--paxor-right-panel-top)) !important;

    border: 1px solid rgba(6, 171, 212, 0.44) !important;
    border-top: 0 !important;
    border-radius:
        0 0
        var(--paxor-right-panel-radius)
        var(--paxor-right-panel-radius) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.015)
        ),
        linear-gradient(
            180deg,
            rgba(6, 171, 212, 0.14),
            rgba(0, 0, 0, 0.10)
        ),
        rgba(15, 18, 22, 0.98) !important;

    box-shadow:
        0 0 28px rgba(6, 171, 212, 0.24),
        0 20px 54px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;

    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;

    box-sizing: border-box !important;
    z-index: 1500 !important;
}

/* Аккаунт, язык и три точки используют одинаковые отступы */
.account-menu,
.language-menu {
    padding: 26px 17px 20px !important;
}

.vertical-menu {
    padding: 26px 17px 20px !important;
}

/* Убираем старый дополнительный padding списка */
.vertical-menu ul {
    padding: 0 !important;
}

/* Одинаковое место появления */
.account-menu.open,
.vertical-menu.open {
    right: 0 !important;
}

.language-menu.open,
.notification-dropdown.open,
.notification-dropdown.active,
.notification-wrapper.open .notification-dropdown {
    transform: translateY(0) !important;
}

/* ---------------------------------------------------------
   2. Аккаунт и меню «три точки» — один масштаб
   --------------------------------------------------------- */

.account-menu ul li,
.vertical-menu ul li {
    min-height: var(--paxor-right-panel-item-height) !important;
    height: var(--paxor-right-panel-item-height) !important;

    margin: 7px 0 !important;
    padding: 8px 13px 8px 52px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;
}

.account-menu ul li::before,
.vertical-menu ul li::before {
    left: 9px !important;

    width: var(--paxor-right-panel-icon-box) !important;
    height: var(--paxor-right-panel-icon-box) !important;
}

.account-menu ul li i,
.vertical-menu ul li i {
    left: 9px !important;

    width: var(--paxor-right-panel-icon-box) !important;
    height: var(--paxor-right-panel-icon-box) !important;

    font-size: 14px !important;
}

.account-menu ul li a,
.vertical-menu ul li a,
.account-menu .logout-btn {
    padding-left: 11px !important;

    font-size: var(--paxor-right-panel-font-size) !important;
    font-weight: 550 !important;
    line-height: 1.25 !important;
}

/* ---------------------------------------------------------
   3. Меню выбора языка — те же внутренние рамки
   --------------------------------------------------------- */

.language-menu ul li {
    min-height: var(--paxor-right-panel-item-height) !important;
    height: var(--paxor-right-panel-item-height) !important;

    margin: 7px 0 !important;
    padding: 8px 13px !important;

    gap: 12px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;
}

.language-menu ul li img.lang-icon {
    width: var(--paxor-right-panel-icon-box) !important;
    height: var(--paxor-right-panel-icon-box) !important;

    padding: 5px !important;

    border: 1px solid rgba(6, 217, 255, 0.22) !important;
    border-radius: 50% !important;

    background: rgba(6, 171, 212, 0.12) !important;

    box-sizing: border-box !important;
}

.language-menu ul li span {
    font-size: var(--paxor-right-panel-font-size) !important;
    font-weight: 550 !important;
}

.language-menu ul li .lang-check {
    font-size: 14px !important;
}

/* ---------------------------------------------------------
   4. Уведомления — тот же размер и градиент
   --------------------------------------------------------- */

.notification-dropdown {
    padding: 0 0 20px !important;
    overflow: hidden !important;
}

/* Заголовок такой же ширины и без отдельного чужого фона */
.notification-header {
    min-height: 61px !important;
    padding: 16px 17px !important;

    border-bottom: 1px solid rgba(6, 217, 255, 0.20) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.18),
            rgba(0, 255, 204, 0.055)
        ),
        rgba(8, 12, 16, 0.66) !important;
}

.notification-header span {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.notification-mark-all {
    min-height: 31px !important;
    padding: 6px 9px !important;

    border-radius: 9px !important;

    font-size: 11.5px !important;
}

.notification-list {
    max-height: calc(100vh - 190px) !important;
    padding: 12px 17px 0 !important;

    overflow-y: auto !important;
}

.notification-item,
.notification-empty {
    min-height: var(--paxor-right-panel-item-height) !important;
    margin: 7px 0 !important;
    padding: 11px 13px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;

    color: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;

    box-sizing: border-box !important;
}

.notification-empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.notification-view-all {
    margin: 12px 17px 0 !important;
    padding: 12px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;

    font-size: 14px !important;
}

/* ---------------------------------------------------------
   5. Сообщения по конверту — то же место, размер и стиль
   --------------------------------------------------------- */

.music-messages-popover {
    padding: 0 0 20px !important;
    overflow: hidden !important;
}

.music-messages-popover[hidden] {
    display: none !important;
}

.music-messages-popover-head {
    min-height: 61px !important;
    margin: 0 !important;
    padding: 16px 17px !important;

    border-bottom: 1px solid rgba(6, 217, 255, 0.20) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.18),
            rgba(0, 255, 204, 0.055)
        ),
        rgba(8, 12, 16, 0.66) !important;

    box-sizing: border-box !important;
}

.music-messages-popover-head h2 {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.music-messages-popover-head button {
    width: 31px !important;
    height: 31px !important;

    border: 1px solid rgba(6, 217, 255, 0.24) !important;
    border-radius: 9px !important;

    background: rgba(6, 171, 212, 0.10) !important;
}

.music-message-thread-list {
    max-height: calc(100vh - 205px) !important;
    padding: 12px 17px 0 !important;

    display: grid !important;
    gap: 0 !important;

    overflow-y: auto !important;
}

.music-message-thread {
    min-height: 62px !important;
    margin: 7px 0 !important;
    padding: 8px 11px !important;

    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 11px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;

    box-sizing: border-box !important;
}

.music-message-thread:hover {
    border-color: rgba(6, 217, 255, 0.42) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.20),
            rgba(0, 255, 204, 0.08)
        ),
        rgba(10, 14, 18, 0.72) !important;
}

.music-message-avatar {
    width: 36px !important;
    height: 36px !important;
}

.music-message-thread-copy strong {
    font-size: 14px !important;
}

.music-message-thread-copy small,
.music-message-thread time,
.music-message-empty {
    font-size: 11.5px !important;
}

.music-message-empty {
    margin: 12px 17px 0 !important;
    padding: 13px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;
}

.music-view-all-messages {
    width: calc(100% - 34px) !important;
    min-height: 48px !important;
    margin: 12px 17px 0 !important;
    padding: 10px 13px !important;

    border: 1px solid rgba(6, 171, 212, 0.28) !important;
    border-radius: 14px !important;

    background: rgba(8, 12, 16, 0.92) !important;

    font-size: 14px !important;
}

/* ---------------------------------------------------------
   6. Общий hover для внутренних рамок
   --------------------------------------------------------- */

.language-menu ul li:hover,
.language-menu ul li.active,
.notification-item:hover,
.notification-view-all:hover,
.music-message-thread:hover,
.music-view-all-messages:hover {
    border-color: rgba(6, 217, 255, 0.42) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.20),
            rgba(0, 255, 204, 0.08)
        ),
        rgba(10, 14, 18, 0.72) !important;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ---------------------------------------------------------
   7. Одинаковые скроллбары
   --------------------------------------------------------- */

.account-menu,
.vertical-menu,
.language-menu,
.notification-list,
.music-message-thread-list {
    scrollbar-width: thin !important;
    scrollbar-color:
        rgba(6, 217, 255, 0.48)
        rgba(255, 255, 255, 0.055) !important;
}

.account-menu::-webkit-scrollbar,
.vertical-menu::-webkit-scrollbar,
.language-menu::-webkit-scrollbar,
.notification-list::-webkit-scrollbar,
.music-message-thread-list::-webkit-scrollbar {
    width: 9px !important;
}

.account-menu::-webkit-scrollbar-thumb,
.vertical-menu::-webkit-scrollbar-thumb,
.language-menu::-webkit-scrollbar-thumb,
.notification-list::-webkit-scrollbar-thumb,
.music-message-thread-list::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(6, 217, 255, 0.42) !important;
}

/* ---------------------------------------------------------
   8. Мобильная адаптация — тоже одинаковая
   --------------------------------------------------------- */

@media (max-width: 900px) {
    :root {
        --paxor-right-panel-top: 58px;
    }
}

@media (max-width: 760px) {
    :root {
        --paxor-right-panel-width: 280px;
        --paxor-right-panel-item-height: 46px;
        --paxor-right-panel-icon-box: 31px;
        --paxor-right-panel-font-size: 14px;
    }

    .account-menu,
    .vertical-menu,
    .language-menu {
        padding: 22px 14px 18px !important;
    }

    .notification-list,
    .music-message-thread-list {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .notification-view-all,
    .music-view-all-messages,
    .music-message-empty {
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}

@media (max-width: 420px) {
    :root {
        --paxor-right-panel-width: 100%;
    }

    .account-menu,
    .vertical-menu,
    .language-menu,
    .notification-dropdown,
    .music-messages-popover {
        max-width: none !important;
    }
}


/* =========================================================
   RIGHT PANELS — 320PX + TRUE CLOSED STATE
   Аккаунт / язык / уведомления / сообщения / три точки
   ========================================================= */

:root {
    --paxor-right-panel-width: 320px !important;
    --paxor-right-panel-top: 62px;
}

/* Все панели находятся строго в одной точке */
.account-menu,
.vertical-menu,
.language-menu,
.notification-dropdown,
.music-messages-popover {
    position: fixed !important;

    top: var(--paxor-right-panel-top) !important;
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-right-panel-width) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100vh - var(--paxor-right-panel-top)) !important;

    box-sizing: border-box !important;
    z-index: 1500 !important;
}

/* Аккаунт, три точки и язык прокручиваются целиком */
.account-menu,
.vertical-menu,
.language-menu {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Уведомления и сообщения используют внутренние списки */
.notification-dropdown,
.music-messages-popover {
    overflow: hidden !important;
}

/* ---------------------------------------------------------
   Настоящее закрытое состояние
   --------------------------------------------------------- */

.account-menu:not(.open),
.vertical-menu:not(.open),
.language-menu:not(.open),
.notification-dropdown:not(.open):not(.active),
.notification-wrapper:not(.open) .notification-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-10px) !important;

    right: 0 !important;
}

/* Настоящее открытое состояние */
.account-menu.open,
.vertical-menu.open,
.language-menu.open,
.notification-dropdown.open,
.notification-dropdown.active,
.notification-wrapper.open .notification-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;

    right: 0 !important;
}

/* Сообщения управляются атрибутом hidden */
.music-messages-popover[hidden] {
    display: none !important;
}

.music-messages-popover:not([hidden]) {
    display: block !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
}

/* Плавность открытия/закрытия */
.account-menu,
.vertical-menu,
.language-menu,
.notification-dropdown {
    transition:
        opacity 0.20s ease,
        visibility 0.20s ease,
        transform 0.20s ease !important;
}

/* На страницах с меню 58px */
@media (max-width: 900px) {
    :root {
        --paxor-right-panel-top: 58px;
    }
}

/* На узком экране панели занимают всю ширину */
@media (max-width: 420px) {
    :root {
        --paxor-right-panel-width: 100%;
    }

    .account-menu,
    .vertical-menu,
    .language-menu,
    .notification-dropdown,
    .music-messages-popover {
        max-width: none !important;
    }
}


/* =========================================================
   NATIVE TOOLTIPS + NOTIFICATIONS + WALLET SAFE FIX
   Возвращены обычные подсказки без portal и дублирования.
   ========================================================= */

/* ---------------------------------------------------------
   1. Уведомления: active/open всегда открывают панель
   --------------------------------------------------------- */

#notificationDropdown.active,
#notificationDropdown.open,
.notification-wrapper.open #notificationDropdown {
    display: block !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
    right: 0 !important;
}

/* Закрываем только действительно неактивную панель */
.notification-wrapper:not(.open)
#notificationDropdown:not(.active):not(.open) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-10px) !important;
}

/* ---------------------------------------------------------
   2. Возвращаем всем подсказкам прежний размер и положение
   --------------------------------------------------------- */

.menu-item:hover > span:not(.notification-badge):not(.wallet-menu-status-dot),
.calculator-menu-button:hover > .calculator-tooltip,
.notification-button:hover > .notification-tooltip,
.menu-toggle-btn:hover > .menu-tooltip,
.wallet-menu-button:hover > span:not(.wallet-menu-status-dot) {
    top: 62px !important;

    margin: 0 !important;

    min-width: 112px !important;
    padding: 6px 11px !important;

    border: 1px solid rgba(6, 217, 255, 0.24) !important;
    border-radius: 9px !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.18),
            rgba(0, 255, 204, 0.07)
        ),
        rgba(10, 14, 18, 0.92) !important;

    color: #e8fbff !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: none !important;
    box-sizing: border-box !important;
}

/* Специальные подсказки также строго сразу под планкой */
.calculator-menu-button:hover > .calculator-tooltip,
.notification-button:hover > .notification-tooltip,
.menu-toggle-btn:hover > .menu-tooltip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block !important;
}

/* У текста обычных menu-item сохраняем штатное центрирование */
.menu-item:hover > span:not(.notification-badge):not(.wallet-menu-status-dot),
.wallet-menu-button:hover > span:not(.wallet-menu-status-dot) {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block !important;
}

/* Красный счётчик и зелёная точка кошелька не являются tooltip */
.notification-button:hover > .notification-badge,
.wallet-menu-button:hover > .wallet-menu-status-dot {
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

/* ---------------------------------------------------------
   3. Правильный stacking order без отдельного tooltip portal
   --------------------------------------------------------- */

nav {
    overflow: visible !important;
    z-index: 10000 !important;
}

nav > .menu-left,
nav > .menu-center,
nav > .menu-right,
nav li {
    overflow: visible !important;
}

/* Базовый слой зон меню */
nav > .menu-left {
    position: relative !important;
    z-index: 100 !important;
}

nav > .menu-center {
    z-index: 110 !important;
}

nav > .menu-right {
    position: relative !important;
    z-index: 120 !important;
}

/* Панели находятся ниже наведённой кнопки */
.account-menu,
.vertical-menu,
.language-menu,
.notification-dropdown,
.music-messages-popover {
    z-index: 1000 !important;
}

/* Каждый пункт меню получает собственный слой */
nav > .menu-right > li,
nav > .menu-center > li,
nav > .menu-left > li {
    position: relative !important;
    z-index: 1 !important;
}

/* Открытая панель сообщений остаётся выше обычных пунктов */
.nav-messages:has(.music-messages-popover:not([hidden])) {
    z-index: 1000 !important;
}

/* Но пункт под курсором всегда выше открытой панели */
nav > .menu-right > li:hover,
nav > .menu-right > li:focus-within,
nav > .menu-center > li:hover,
nav > .menu-center > li:focus-within,
nav > .menu-left > li:hover,
nav > .menu-left > li:focus-within {
    z-index: 5000 !important;
}

/* Если курсор находится в центральной или левой зоне,
   вся эта зона поднимается над правой панелью сообщений */
nav:has(.menu-center > li:hover) > .menu-center,
nav:has(.menu-center > li:focus-within) > .menu-center {
    z-index: 6000 !important;
}

nav:has(.menu-left > li:hover) > .menu-left,
nav:has(.menu-left > li:focus-within) > .menu-left {
    z-index: 6000 !important;
}

/* Подсказка внутри наведённой кнопки — верхний элемент */
.menu-item:hover > span:not(.notification-badge):not(.wallet-menu-status-dot),
.calculator-menu-button:hover > .calculator-tooltip,
.notification-button:hover > .notification-tooltip,
.menu-toggle-btn:hover > .menu-tooltip,
.wallet-menu-button:hover > span:not(.wallet-menu-status-dot) {
    z-index: 7000 !important;
}

/* ---------------------------------------------------------
   4. Кнопка и выпадающий бейдж кошелька не скрываются
   --------------------------------------------------------- */

#wallet-menu-button,
.wallet-menu-button,
.nav-wallet-control {
    visibility: visible !important;
    pointer-events: auto !important;
}

#wallet-menu-button > i,
#wallet-menu-button > .wallet-menu-status-dot {
    visibility: visible !important;
    pointer-events: none !important;
}

#wallet-compact-dropdown:not([hidden]) {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* ---------------------------------------------------------
   5. Адаптивная высота меню
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .menu-item:hover > span:not(.notification-badge):not(.wallet-menu-status-dot),
    .calculator-menu-button:hover > .calculator-tooltip,
    .notification-button:hover > .notification-tooltip,
    .menu-toggle-btn:hover > .menu-tooltip,
    .wallet-menu-button:hover > span:not(.wallet-menu-status-dot) {
        top: 58px !important;
    }
}


/* =========================================================
   SINGLE REAL TOOLTIP IN BODY + RELIABLE WALLET BADGE
   ========================================================= */

/* Оригинальные подсказки внутри nav скрыты до переноса в body */
nav .menu-item > span:not(.notification-badge):not(.wallet-menu-status-dot),
nav .calculator-tooltip,
nav .notification-tooltip,
nav .menu-tooltip,
nav .wallet-menu-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Переносится именно существующий элемент — дубля нет */
body > .paxor-tooltip-floating {
    position: fixed !important;
    top: 62px !important;
    left: 0;

    z-index: 2147483647 !important;

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;

    min-width: 112px !important;
    max-width: min(260px, calc(100vw - 16px)) !important;

    margin: 0 !important;
    padding: 6px 11px !important;

    border: 1px solid rgba(6, 217, 255, 0.24) !important;
    border-radius: 9px !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.18),
            rgba(0, 255, 204, 0.07)
        ),
        rgba(10, 14, 18, 0.98) !important;

    color: #e8fbff !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: nowrap !important;

    box-shadow:
        0 0 12px rgba(6, 217, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    transform: translateX(-50%) !important;

    box-sizing: border-box !important;
}

/* Светлая тема */
body.light-theme > .paxor-tooltip-floating {
    border-color: rgba(3, 125, 156, 0.28) !important;
    background: rgba(250, 252, 253, 0.99) !important;
    color: #182127 !important;
    box-shadow:
        0 0 12px rgba(3, 125, 156, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.18) !important;
}

/* Кошелёк: чёткое скрытое и открытое состояния */
#wallet-compact-dropdown[hidden] {
    display: none !important;
}

#wallet-compact-dropdown.wallet-open:not([hidden]),
#wallet-compact-dropdown:not([hidden]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Кнопка кошелька всегда кликабельна */
#wallet-menu-button,
.nav-wallet-control,
.nav-wallet-control .wallet-menu-button {
    pointer-events: auto !important;
}

/* Открытый кошелёк выше страниц, но ниже floating tooltip */
#wallet-compact-dropdown {
    z-index: 16000 !important;
}

@media (max-width: 900px) {
    body > .paxor-tooltip-floating {
        top: 58px !important;
    }
}


/* =========================================================
   RIGHT MENU ICONS — SLIGHTLY SMALLER
   Аккаунт и три точки не изменяются.
   Кликабельные области кнопок остаются прежними.
   ========================================================= */

/* Язык: 26px -> 23px */
.nav-language .language-icon,
.nav-language .menu-item > img.language-icon {
    width: 23px !important;
    height: 23px !important;
}

.nav-language .menu-item:hover > img.language-icon {
    transform: scale(1.08) !important;
}

/* Кошелёк: 25px -> 23px */
.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    font-size: 23px !important;
}

/* Калькулятор: 27px -> 24px */
.calculator-menu-button::before {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
}

/* Уведомления: немного уменьшаем саму иконку */
.notification-button > i,
.notification-button > i.fa-bell,
.notification-button > i.fa-envelope,
.notification-button > i.fa-envelope-open,
.notification-button > i.fa-message {
    font-size: 19px !important;
}

/* Сообщения-конверт: 28px -> 25px */
.music-messages-menu-button::before {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
}

/* Аккаунт и три точки намеренно не меняются */


/* =========================================================
   RIGHT MENU ICONS — ONE MORE SMALL STEP
   Аккаунт и три точки без изменений.
   ========================================================= */

/* Язык: 23px -> 21px */
.nav-language .language-icon,
.nav-language .menu-item > img.language-icon {
    width: 21px !important;
    height: 21px !important;
}

/* Кошелёк: 23px -> 21px */
.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    font-size: 21px !important;
}

/* Калькулятор: 24px -> 22px */
.calculator-menu-button::before {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
}

/* Уведомления: 19px -> 17px */
.notification-button > i,
.notification-button > i.fa-bell,
.notification-button > i.fa-envelope,
.notification-button > i.fa-envelope-open,
.notification-button > i.fa-message {
    font-size: 17px !important;
}

/* Сообщения-конверт: 25px -> 23px */
.music-messages-menu-button::before {
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;
}

/* Аккаунт и три точки намеренно не меняются */


/* =========================================================
   CALCULATOR MOVED TO ACCOUNT MENU
   ========================================================= */

.nav-calculator-right {
    display: none !important;
}

.account-menu #calculator-button-account {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;

    color: inherit;
    text-decoration: none;
}

.account-menu #calculator-button-account > span {
    display: inline !important;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: inherit !important;

    font: inherit !important;
    line-height: inherit !important;

    transform: none !important;
}

.account-menu li:has(#calculator-button-account.active) {
    border-color: rgba(6, 217, 255, 0.62) !important;

    background:
        linear-gradient(
            90deg,
            rgba(6, 171, 212, 0.30),
            rgba(0, 255, 204, 0.10)
        ),
        rgba(10, 14, 18, 0.84) !important;
}


/* =========================================================
   ACCOUNT MENU FINAL ORDER
   ========================================================= */

.account-menu ul li:has(#logout-button-menu) {
    margin-top: 18px !important;
}

.account-menu ul li:has(#calculator-button-account) {
    margin-top: 10px !important;
}


/* =========================================================
   HORIZONTAL WALLET — MATCH NOTIFICATIONS / MESSAGES
   Размер и цвет совпадают с правыми контурными значками.
   ========================================================= */

.nav-wallet-control .wallet-menu-button > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-connected > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-disconnected > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-error > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-locked > i.fa-wallet {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    flex: 0 0 23px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 23px !important;
    line-height: 1 !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    -webkit-text-stroke:
        0.82px rgba(198, 204, 208, 0.82) !important;

    paint-order: stroke fill !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;

    opacity: 1 !important;

    transition:
        -webkit-text-stroke-color 0.18s ease,
        transform 0.18s ease !important;
}

.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet,
.nav-wallet-control .wallet-menu-button:focus-visible > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-connected:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-connected.active > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-disconnected:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-disconnected.active > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-error:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-error.active > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-locked:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-locked.active > i.fa-wallet {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke-color: #ffffff !important;

    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;

    transform: scale(1.05) !important;
}

/* Светлая тема — тот же принцип, что у уведомлений и сообщений */
body.light-theme
.nav-wallet-control .wallet-menu-button > i.fa-wallet,
.light-theme
.nav-wallet-control .wallet-menu-button > i.fa-wallet {
    -webkit-text-stroke-color:
        rgba(34, 39, 43, 0.72) !important;
}

body.light-theme
.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
body.light-theme
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet,
.light-theme
.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
.light-theme
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet {
    -webkit-text-stroke-color: #000000 !important;
}

/* Цвет меняет только маленький круглый индикатор */
#wallet-menu-status-dot.wallet-menu-status-dot.connected {
    background: #40e895 !important;
    box-shadow: 0 0 9px rgba(64, 232, 149, 0.85) !important;
}

#wallet-menu-status-dot.wallet-menu-status-dot.disconnected {
    background: #d2a84d !important;
    box-shadow: 0 0 8px rgba(210, 168, 77, 0.72) !important;
}

#wallet-menu-status-dot.wallet-menu-status-dot.error,
#wallet-menu-status-dot.wallet-menu-status-dot.locked {
    background: #ff6969 !important;
    box-shadow: 0 0 9px rgba(255, 105, 105, 0.78) !important;
}


/* =========================================================
   LANGUAGE + WALLET — VISUALLY SMALLER
   Размер кнопок не меняется, уменьшаются только сами значки.
   ========================================================= */

/* Переключатель языка */
.nav-language .language-icon,
.nav-language .menu-item > img.language-icon {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    flex: 0 0 19px !important;
}

.nav-language .menu-item:hover > img.language-icon {
    transform: scale(1.07) !important;
}

/* Значок кошелька */
.nav-wallet-control .wallet-menu-button > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-connected > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-disconnected > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-error > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.wallet-locked > i.fa-wallet {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    flex: 0 0 19px !important;

    font-size: 19px !important;

    -webkit-text-stroke-width: 0.78px !important;
}

/* Hover остаётся аккуратным, без визуального увеличения */
.nav-wallet-control .wallet-menu-button:hover > i.fa-wallet,
.nav-wallet-control .wallet-menu-button.active > i.fa-wallet,
.nav-wallet-control .wallet-menu-button:focus-visible > i.fa-wallet {
    transform: scale(1.04) !important;
}

/* Слегка подправляем положение круглого индикатора под меньший значок */
#wallet-menu-status-dot.wallet-menu-status-dot {
    transform: translate(1px, -1px) !important;
}


/* =========================================================
   WALLET BADGE — 320PX, FULL BORDER, FOUR ROUNDED CORNERS
   Совпадает по ширине с правыми вертикальными панелями.
   ========================================================= */

:root {
    --paxor-wallet-panel-width: 320px !important;
    --paxor-wallet-dropdown-top: 68px !important;
}

/* Общий контейнер */
.wallet-compact-dropdown {
    top: var(--paxor-wallet-dropdown-top) !important;
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-wallet-panel-width) !important;
    max-width: calc(100vw - 8px) !important;

    box-sizing: border-box !important;
}

/* Основной компактный бейдж */
.wallet-compact-dropdown .music-wallet-status,
.wallet-compact-dropdown .music-wallet-status.connected,
.wallet-compact-dropdown .music-wallet-status.not-connected,
.wallet-compact-dropdown .music-wallet-status.error {
    width: 100% !important;
    max-width: 100% !important;

    height: 52px !important;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 6px 8px !important;

    display: grid !important;
    grid-template-columns:
        32px minmax(66px, 1fr) 86px 74px !important;
    align-items: center !important;
    gap: 5px !important;

    border: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-right: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-radius: 16px !important;

    overflow: visible !important;
    box-sizing: border-box !important;

    box-shadow:
        0 0 18px rgba(6, 217, 255, 0.17),
        0 12px 30px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* В отключённом состоянии сохраняем жёлтый оттенок рамки */
.wallet-compact-dropdown .music-wallet-status.not-connected {
    border-color: rgba(242, 189, 85, 0.48) !important;
}

/* Ошибка */
.wallet-compact-dropdown .music-wallet-status.error {
    border-color: rgba(255, 105, 105, 0.58) !important;
}

/* Кнопка с иконкой кошелька внутри бейджа */
.wallet-compact-dropdown .music-wallet-details-trigger {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;

    border-radius: 9px !important;
}

.wallet-compact-dropdown .music-wallet-details-trigger > i {
    font-size: 15px !important;
}

/* Статус и адрес */
.wallet-compact-dropdown .music-wallet-status-text {
    min-width: 0 !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;

    overflow: hidden !important;
}

.wallet-compact-dropdown #music-wallet-status-title {
    width: 100% !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;

    font-size: 9.5px !important;
}

.wallet-compact-dropdown #music-wallet-status-detail {
    width: 100% !important;
    max-width: 100% !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;

    font-size: 10.5px !important;
}

.wallet-compact-dropdown .music-wallet-address-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;
}

/* Переключатель сети */
.wallet-compact-dropdown .music-network-selector,
.wallet-compact-dropdown .music-network-trigger {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
}

.wallet-compact-dropdown .music-network-trigger {
    height: 34px !important;
    min-height: 34px !important;

    padding: 4px 6px !important;
    gap: 4px !important;

    border-radius: 10px !important;

    font-size: 9.5px !important;
}

.wallet-compact-dropdown .music-network-trigger img {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
}

.wallet-compact-dropdown #music-network-trigger-label {
    max-width: 43px !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.wallet-compact-dropdown .music-network-trigger-arrow {
    font-size: 7px !important;
}

/* Кнопка подключения */
.wallet-compact-dropdown .music-connect-wallet-btn {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;

    height: 34px !important;
    min-height: 34px !important;

    padding: 4px 5px !important;
    gap: 3px !important;

    border-radius: 10px !important;

    font-size: 9.5px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn i {
    font-size: 9px !important;
}

.wallet-compact-dropdown .music-connect-wallet-btn span {
    min-width: 0 !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Подробная панель кошелька той же ширины */
.wallet-compact-dropdown .music-wallet-details-panel {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;

    padding: 13px !important;

    border: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-right: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-radius: 16px !important;

    box-sizing: border-box !important;
}

/* Заголовок подробной панели компактнее */
.wallet-compact-dropdown .music-wallet-details-header {
    min-height: 64px !important;

    margin: -13px -13px 12px !important;
    padding: 11px 12px !important;

    border-radius: 15px 15px 0 0 !important;
}

.wallet-compact-dropdown .music-wallet-details-heading > i {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;

    border-radius: 11px !important;

    font-size: 18px !important;
}

.wallet-compact-dropdown .music-wallet-details-heading span {
    font-size: 9px !important;
}

.wallet-compact-dropdown .music-wallet-details-heading strong {
    font-size: 13px !important;
}

/* Панель выбора сетей той же ширины */
.wallet-compact-dropdown .music-network-menu {
    position: fixed !important;

    top: calc(var(--paxor-wallet-dropdown-top) + 52px) !important;
    right: 0 !important;
    left: auto !important;

    width: var(--paxor-wallet-panel-width) !important;
    max-width: var(--paxor-wallet-panel-width) !important;
    max-height: calc(100vh - 122px) !important;

    margin: 0 !important;
    padding: 8px !important;

    border: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-right: 1px solid rgba(6, 171, 212, 0.46) !important;
    border-radius: 0 0 16px 16px !important;

    box-sizing: border-box !important;
}

.wallet-compact-dropdown .music-network-option {
    min-height: 44px !important;

    margin-bottom: 5px !important;
    padding: 6px 8px !important;

    grid-template-columns: 26px minmax(0, 1fr) 18px !important;
    gap: 8px !important;

    border-radius: 10px !important;
}

.wallet-compact-dropdown .music-network-option > img {
    width: 24px !important;
    height: 24px !important;
}

.wallet-compact-dropdown .music-network-option-copy strong {
    font-size: 11.5px !important;
}

.wallet-compact-dropdown .music-network-option-copy small {
    font-size: 9.5px !important;
}

/* Мобильная адаптация */
@media (max-width: 760px) {
    :root {
        --paxor-wallet-panel-width: min(320px, calc(100vw - 8px)) !important;
        --paxor-wallet-dropdown-top: 64px !important;
    }

    .wallet-compact-dropdown {
        top: var(--paxor-wallet-dropdown-top) !important;
        right: 4px !important;
    }

    .wallet-compact-dropdown .music-wallet-status {
        grid-template-columns:
            30px minmax(58px, 1fr) 82px 70px !important;

        border-radius: 14px !important;
    }

    .wallet-compact-dropdown .music-network-selector,
    .wallet-compact-dropdown .music-network-trigger {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
    }

    .wallet-compact-dropdown .music-connect-wallet-btn {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }

    .wallet-compact-dropdown .music-network-menu {
        top: calc(var(--paxor-wallet-dropdown-top) + 52px) !important;
        right: 4px !important;

        border-radius: 0 0 14px 14px !important;
    }

    .wallet-compact-dropdown .music-wallet-details-panel {
        right: 4px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 360px) {
    .wallet-compact-dropdown .music-wallet-status {
        grid-template-columns:
            30px minmax(48px, 1fr) 76px 62px !important;

        gap: 4px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .wallet-compact-dropdown .music-network-selector,
    .wallet-compact-dropdown .music-network-trigger {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
    }

    .wallet-compact-dropdown .music-connect-wallet-btn {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
    }
}


/* =========================================================
   WALLET BADGE + MAIN WALLET PANEL — NO GAP
   Бейдж и подробная панель соединяются в один блок.
   ========================================================= */

/* Основная панель начинается сразу под бейджем */
.wallet-compact-dropdown .music-wallet-details-panel {
    top: 100% !important;
    margin-top: -1px !important;

    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
}

/* При открытой подробной панели убираем нижнее скругление бейджа */
.wallet-compact-dropdown:has(
    .music-wallet-details-panel:not([hidden])
) .music-wallet-status,
.wallet-compact-dropdown:has(
    .music-wallet-details-panel[aria-hidden="false"]
) .music-wallet-status {
    border-radius: 16px 16px 0 0 !important;

    box-shadow:
        0 0 18px rgba(6, 217, 255, 0.17),
        0 8px 20px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Верх подробной панели прямой, потому что он соединён с бейджем */
.wallet-compact-dropdown .music-wallet-details-header {
    border-radius: 0 !important;
}

/* Не оставляем визуальную щель из-за внутренних теней */
.wallet-compact-dropdown .music-wallet-details-panel::before,
.wallet-compact-dropdown .music-wallet-details-panel::after {
    top: 0 !important;
}

/* Мобильная версия */
@media (max-width: 760px) {
    .wallet-compact-dropdown .music-wallet-details-panel {
        top: 100% !important;
        margin-top: -1px !important;

        border-radius: 0 0 14px 14px !important;
    }

    .wallet-compact-dropdown:has(
        .music-wallet-details-panel:not([hidden])
    ) .music-wallet-status,
    .wallet-compact-dropdown:has(
        .music-wallet-details-panel[aria-hidden="false"]
    ) .music-wallet-status {
        border-radius: 14px 14px 0 0 !important;
    }
}

/* =========================================================
   ACCOUNT AVATAR — REAL AVATAR FULL SIZE
   DEFAULT USER ICON — SLIGHTLY SHORTER
   ========================================================= */

/* Настоящий пользовательский аватар после входа остаётся как раньше */
.nav-account .menu-item img.account-avatar,
#account-button img.account-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;

    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;
}

/* Уменьшается только стандартный контурный значок пользователя */
#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 29px !important;
    height: 26px !important;
    min-width: 29px !important;
    min-height: 26px !important;
    flex: 0 0 29px !important;

    -webkit-mask-size: 29px 26px !important;
    mask-size: 29px 26px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}

/* Стрелка остаётся в последнем согласованном положении */
#account-button::after {
    right: 7px !important;
    bottom: 10px !important;
}

/* Hover настоящего аватара без изменения его постоянного размера */
#account-button:hover img.account-avatar {
    transform: scale(1.04) !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — MEDIUM SIZE
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 31px !important;
    height: 29px !important;
    min-width: 31px !important;
    min-height: 29px !important;
    flex: 0 0 31px !important;

    -webkit-mask-size: 31px 29px !important;
    mask-size: 31px 29px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — SLIGHTLY LARGER
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 32px !important;
    height: 30px !important;
    min-width: 32px !important;
    min-height: 30px !important;
    flex: 0 0 32px !important;

    -webkit-mask-size: 32px 30px !important;
    mask-size: 32px 30px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — 33 × 31 PX
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 33px !important;
    height: 31px !important;
    min-width: 33px !important;
    min-height: 31px !important;
    flex: 0 0 33px !important;

    -webkit-mask-size: 33px 31px !important;
    mask-size: 33px 31px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — 34 × 32 PX
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 34px !important;
    height: 32px !important;
    min-width: 34px !important;
    min-height: 32px !important;
    flex: 0 0 34px !important;

    -webkit-mask-size: 34px 32px !important;
    mask-size: 34px 32px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — 35 × 33 PX
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 35px !important;
    height: 33px !important;
    min-width: 35px !important;
    min-height: 33px !important;
    flex: 0 0 35px !important;

    -webkit-mask-size: 35px 33px !important;
    mask-size: 35px 33px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — 36 × 34 PX
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 36px !important;
    height: 34px !important;
    min-width: 36px !important;
    min-height: 34px !important;
    flex: 0 0 36px !important;

    -webkit-mask-size: 36px 34px !important;
    mask-size: 36px 34px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}


/* =========================================================
   DEFAULT ACCOUNT ICON — 37 × 35 PX + ARROW RIGHT
   Настоящий аватар остаётся 36 × 36 px.
   ========================================================= */

#account-button:has(> img.account-avatar[src*="account.png"])::before,
#account-button:has(> img.account-avatar[src*="account2.png"])::before {
    width: 37px !important;
    height: 35px !important;
    min-width: 37px !important;
    min-height: 35px !important;
    flex: 0 0 37px !important;

    -webkit-mask-size: 37px 35px !important;
    mask-size: 37px 35px !important;

    -webkit-mask-position: center !important;
    mask-position: center !important;
}

#account-button::after {
    right: 5px !important;
    bottom: 10px !important;
}

/* =========================================================
   FINAL ACTIVE PAGE MARKER
   Голубой значок и полная линия под активной страницей без свечения.
   ========================================================= */

.menu-center .menu-item.active {
    color: #00ccff !important;
}

.menu-center .menu-item.active > i {
    color: #00ccff !important;
    text-shadow: none !important;
    filter: none !important;
}

.menu-center .menu-item.active > img {
    filter: none !important;
}

.menu-center .menu-item.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    width: 104px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #00ccff !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
}
