/* Fleep Casino — шапка (единый стиль с sidebar / footer) */

body.fleep-ui {
    --fleep-header-h: 72px;
    --fleep-header-inner-h: 48px;
    --fleep-header-pad-y: 12px;
    --fleep-header-guest: var(--fleep-header-h);
    --fleep-header-auth: var(--fleep-header-h);
    --fleep-header-catalog: var(--fleep-header-h);
}

@media (min-width: 1024px) {
    body.fleep-ui.fleep-is-auth {
        --fleep-header-h: 80px;
        --fleep-header-inner-h: 56px;
        --fleep-header-pad-y: 12px;
        --fleep-header-auth: 80px;
    }
}

/* --- Shell: сброс Dune grid / pill dock --- */
body.fleep-ui .casino-header.fleep-header {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 20px !important;
    width: auto !important;
    min-height: var(--fleep-header-h) !important;
    height: var(--fleep-header-h) !important;
    padding: var(--fleep-header-pad-y) var(--fleep-content-pad) !important;
    margin: 0 !important;
    background: var(--fleep-surface, #1d1e20) !important;
    border: none !important;
    border-bottom: 1px solid var(--fleep-border-strong, rgba(255, 255, 255, 0.12)) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: fixed !important;
    top: 0 !important;
    left: var(--fleep-sidebar-w) !important;
    right: 0 !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    isolation: auto !important;
}

body.fleep-ui .casino-header.fleep-header.casino-header--scrolled {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--fleep-border-strong, rgba(255, 255, 255, 0.12)) !important;
    background: var(--fleep-surface, #1d1e20) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

body.fleep-ui.fleep-sidebar-collapsed .casino-header.fleep-header,
body.fleep-ui.sidebar-collapsed .casino-header.fleep-header {
    left: var(--fleep-sidebar-collapsed, 72px) !important;
}

body.fleep-ui .fleep-header__start,
body.fleep-ui .fleep-header .header-left {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    grid-column: 1;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
}

body.fleep-ui .fleep-header__rates {
    display: none;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
}

body.fleep-ui .fleep-header__rates:not(.hidden) {
    display: flex;
}

body.fleep-ui .fleep-header-rates__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px 14px;
    max-width: 100%;
    overflow: hidden;
}

body.fleep-ui .fleep-header-rates__item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--fleep-text-muted, #83898e);
}

body.fleep-ui .fleep-header-rates__pair {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--fleep-text-dim, #3c3c45);
}

body.fleep-ui .fleep-header-rates__val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--fleep-text, #fff);
}

@media (min-width: 1024px) {
    body.fleep-ui .fleep-header__rates:not(.hidden) {
        display: flex;
    }
}

@media (max-width: 1023px) {
    body.fleep-ui .fleep-header__rates {
        display: none !important;
    }

    body.fleep-ui .casino-header.fleep-header {
        grid-template-columns: auto 1fr !important;
    }

    body.fleep-ui .fleep-header__end,
    body.fleep-ui .fleep-header .header-center {
        grid-column: 2;
    }
}

body.fleep-ui .fleep-header__end,
body.fleep-ui .fleep-header .header-center {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    grid-column: 3;
    min-width: 0 !important;
    margin-left: 0 !important;
    justify-content: flex-end !important;
    max-width: none !important;
}

body.fleep-ui .fleep-header .header-center-dock {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.fleep-ui [data-theme="dark"] .fleep-header .header-center-dock,
body.fleep-ui [data-theme="light"] .fleep-header .header-center-dock,
body.fleep-ui .fleep-header .header-center-dock {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media (min-width: 721px) {
    body.fleep-ui .fleep-header .header-center,
    body.fleep-ui .header-center {
        justify-self: stretch !important;
        max-width: none !important;
    }

    body.fleep-ui .fleep-header .header-center-dock,
    body.fleep-ui .header-center-dock,
    body.fleep-ui [data-theme="dark"] .fleep-header .header-center-dock,
    body.fleep-ui [data-theme="light"] .fleep-header .header-center-dock {
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body.fleep-ui [data-theme="dark"] .fleep-header .header-center-dock .header-balance-trigger,
    body.fleep-ui [data-theme="light"] .fleep-header .header-center-dock .header-balance-trigger,
    body.fleep-ui .fleep-header .header-center-dock .header-balance-trigger {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

body.fleep-ui .fleep-header .header-buttons:not(.hidden) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body.fleep-ui .fleep-header .header-buttons.hidden,
body.fleep-ui.fleep-is-auth #headerGuest,
body.fleep-ui.fleep-is-guest #headerAuth {
    display: none !important;
}

/* --- Logo --- */
body.fleep-ui .fleep-header__brand,
body.fleep-ui .fleep-header .header-brand-logo,
body.fleep-ui .fleep-header .logo.header-brand-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    text-decoration: none !important;
    box-shadow: none !important;
    filter: none !important;
    overflow: visible !important;
}

@media (min-width: 768px) {
    body.fleep-ui .fleep-header__brand,
    body.fleep-ui .fleep-header .header-brand-logo,
    body.fleep-ui .fleep-header .logo.header-brand-logo {
        min-width: 180px !important;
        min-height: 40px !important;
        flex-shrink: 0 !important;
    }

    body.fleep-ui .fleep-header__logo-wrap {
        display: block !important;
        flex-shrink: 0 !important;
        width: 180px !important;
        height: 40px !important;
        overflow: visible !important;
    }

    body.fleep-ui .fleep-header__logo,
    body.fleep-ui .fleep-header .header-brand-logo .logo-img,
    body.fleep-ui .fleep-header .logo.header-brand-logo .logo-img {
        display: block !important;
        flex-shrink: 0 !important;
        width: 180px !important;
        height: 40px !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}

/* --- Balance + Deposit cluster --- */
body.fleep-ui .fleep-header .header-balance-slot {
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

body.fleep-ui .fleep-header .header-balance-cluster {
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-width: 0 !important;
    height: 40px !important;
    overflow: hidden !important;
    background: var(--fleep-elevated, #1C1E22) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.fleep-ui .fleep-header .header-icon-tools {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

body.fleep-ui .fleep-header .header-balance-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 40px !important;
    height: 40px !important;
    max-width: none !important;
    padding: 0 10px 0 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--fleep-text) !important;
    font-family: var(--fleep-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

body.fleep-ui .fleep-header .header-balance-currency {
    letter-spacing: 0;
    text-transform: none;
    color: var(--fleep-text, #fff);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

body.fleep-ui .fleep-header .header-balance-amount {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 14px;
    color: var(--fleep-text, #fff);
    line-height: 1;
}

body.fleep-ui .fleep-header .header-balance-trigger[data-currency="USD"] .header-balance-currency {
    order: -1;
}

body.fleep-ui .fleep-header .header-balance-amount .balance-bonus {
    display: none !important;
}

body.fleep-ui .fleep-header .header-balance-trigger:hover,
body.fleep-ui .fleep-header .header-balance-trigger--open {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: transparent !important;
}

body.fleep-ui .fleep-header .header-balance-trigger-icon {
    color: var(--fleep-cta, #1ED760) !important;
    opacity: 1 !important;
}

body.fleep-ui .fleep-header .header-balance-trigger .balance-main {
    color: var(--fleep-text, #fff) !important;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
}

body.fleep-ui .fleep-header .header-balance-trigger .header-balance-chevron {
    display: inline-flex !important;
    color: var(--fleep-text-muted) !important;
    flex-shrink: 0 !important;
}

/* --- Profile / notify icons --- */
body.fleep-ui .fleep-header .header-btn-profile,
body.fleep-ui .fleep-header .header-btn-profile--desktop,
body.fleep-ui .fleep-header .header-icon-btn,
body.fleep-ui .fleep-header .header-btn-notify {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: var(--fleep-panel-bg, #262628) !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--fleep-text) !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
}

body.fleep-ui .fleep-header .header-btn-profile:hover,
body.fleep-ui .fleep-header .header-icon-btn:hover,
body.fleep-ui .fleep-header .header-btn-notify:hover {
    background: var(--fleep-panel-hover, #2e3034) !important;
    color: var(--fleep-text) !important;
}

body.fleep-ui .fleep-header .header-btn-profile svg,
body.fleep-ui .fleep-header .header-btn-notify svg {
    width: 18px;
    height: 18px;
    display: block;
}

body.fleep-ui .fleep-header .header-btn-profile__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.fleep-ui .fleep-header #headerBtnPlayerChat,
body.fleep-ui .fleep-header .header-btn-chat {
    display: none !important;
}

/* --- Deposit (right half of cluster) --- */
body.fleep-ui .fleep-header .header-balance-cluster .header-btn-deposit,
body.fleep-ui .fleep-header .header-btn-deposit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 0 !important;
    background: var(--fleep-brand, #EF3F49) !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    color: #fff !important;
    font-family: var(--fleep-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.fleep-ui .fleep-header .header-balance-cluster .header-btn-deposit:hover,
body.fleep-ui .fleep-header .header-btn-deposit:hover {
    background: var(--fleep-brand-hover, #FF6872) !important;
    color: #fff !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none;
}

body.fleep-ui .fleep-header .header-btn-deposit__plus {
    display: none;
}

body.fleep-ui .fleep-header .header-notify-badge {
    box-shadow: 0 0 0 2px var(--fleep-bg, #141415) !important;
}

/* --- Guest buttons --- */
body.fleep-ui .fleep-header #headerGuest:not(.hidden) #btnOpenLogin,
body.fleep-ui .fleep-header #headerGuest:not(.hidden) .fleep-header-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    background: var(--fleep-panel-bg, #262628) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--fleep-text) !important;
    font-family: var(--fleep-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.fleep-ui .fleep-header #btnOpenLogin .fleep-icon-img {
    display: none !important;
}

body.fleep-ui .fleep-header #headerGuest:not(.hidden) #btnOpenRegister,
body.fleep-ui .fleep-header #headerGuest:not(.hidden) .fleep-header-signup {
    min-height: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: var(--fleep-brand, #EF3F49) !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.fleep-ui .fleep-header #headerGuest:not(.hidden) #btnOpenRegister:hover,
body.fleep-ui .fleep-header #headerGuest:not(.hidden) .fleep-header-signup:hover {
    background: var(--fleep-brand-hover, #FF6872) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.fleep-ui .fleep-header .header-right--desktop-menu {
    display: none !important;
}

body.fleep-ui .fleep-header .header-boost-indicator {
    background: var(--fleep-panel-bg, #262628) !important;
    border: none !important;
    border-radius: var(--fleep-radius-ui, 10px) !important;
    box-shadow: var(--fleep-shadow-btn) !important;
}

/* Mobile chrome lives in fleep-shell-mobile.css — keep only structural left:0 here. */
@media (max-width: 767px) {
    body.fleep-ui {
        --fleep-header-h: 56px;
        --fleep-header-inner-h: 36px;
        --fleep-header-pad-y: 8px;
        --fleep-header-guest: 56px;
        --fleep-header-auth: 56px;
    }

    body.fleep-ui .casino-header.fleep-header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    body.fleep-ui .fleep-header__start,
    body.fleep-ui .fleep-header .header-left,
    body.fleep-ui .fleep-header__brand,
    body.fleep-ui .fleep-header .header-brand-logo,
    body.fleep-ui .fleep-header .logo.header-brand-logo {
        min-width: 0 !important;
        max-width: 120px !important;
        flex: 0 1 auto !important;
        flex-shrink: 1 !important;
    }

    body.fleep-ui .fleep-header__logo-wrap {
        width: auto !important;
        height: 28px !important;
        max-width: 120px !important;
    }

    body.fleep-ui .fleep-header__logo,
    body.fleep-ui .fleep-header .header-brand-logo .logo-img,
    body.fleep-ui .fleep-header .logo.header-brand-logo .logo-img {
        width: auto !important;
        height: 28px !important;
        max-width: 120px !important;
        max-height: 28px !important;
    }

    body.fleep-ui .fleep-header .header-balance-slot {
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: 100% !important;
    }

    body.fleep-ui .fleep-header .header-balance-cluster {
        flex: 0 1 auto !important;
        flex-shrink: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        height: 36px !important;
        border-radius: 12px !important;
    }

    body.fleep-ui .fleep-header .header-balance-trigger {
        width: auto !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        min-height: 36px !important;
        height: 36px !important;
        padding: 0 8px 0 10px !important;
    }

    body.fleep-ui .fleep-header .header-balance-cluster .header-btn-deposit,
    body.fleep-ui .fleep-header .header-btn-deposit {
        min-height: 36px !important;
        height: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
    }

    body.fleep-ui .fleep-header .header-btn-deposit__text {
        display: none !important;
    }

    body.fleep-ui .fleep-header .header-btn-deposit__plus {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #fff !important;
    }

    body.fleep-ui .fleep-header .header-icon-tools,
    body.fleep-ui .fleep-header #headerBtnProfile,
    body.fleep-ui .fleep-header .header-btn-profile,
    body.fleep-ui .fleep-header .header-btn-notify,
    body.fleep-ui .fleep-header #headerBtnPlayerChat {
        display: none !important;
    }
}

/* Fleep scroll: document is the scroll container on all breakpoints (beats casino.css flex trap) */
html body.fleep-ui:not(.play-page-active),
html body.fleep-ui:not(.play-page-active) #casinoApp {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
}

html body.fleep-ui:not(.play-page-active) #casinoApp {
    display: block !important;
    overflow: visible !important;
    min-height: 100vh !important;
}

html body.fleep-ui:not(.play-page-active) .fleep-main-column,
html body.fleep-ui:not(.play-page-active) .casino-layout,
html body.fleep-ui:not(.play-page-active) #casinoMain,
html body.fleep-ui:not(.play-page-active) .casino-main {
    display: block !important;
    flex: none !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
}

html body.fleep-ui #pageHome.hidden,
html body.fleep-ui #guestView.hidden,
html body.fleep-ui #lobbyView.hidden,
html body.fleep-ui .page.hidden {
    display: none !important;
}

/* --- Final overrides: beat casino-surface-polish / legacy flex header --- */
@media (min-width: 768px) {
    body.fleep-ui .casino-header.fleep-header {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        justify-content: unset !important;
        background: var(--fleep-surface, #1d1e20) !important;
        border-bottom: 1px solid var(--fleep-border-strong, rgba(255, 255, 255, 0.12)) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28) !important;
    }

    body.fleep-ui .fleep-header__start,
    body.fleep-ui .fleep-header .header-left {
        flex: unset !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body.fleep-ui .fleep-header--type-b.casino-header {
        justify-content: unset !important;
    }
}

html[data-theme="light"] body.fleep-ui .casino-header.fleep-header {
    background: #ffffff !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] body.fleep-ui .fleep-header .header-balance-cluster {
    background: #eceef2 !important;
}

html[data-theme="light"] body.fleep-ui .fleep-header .header-balance-trigger {
    background: transparent !important;
    border: none !important;
    color: #1a1c24 !important;
}

html[data-theme="light"] body.fleep-ui .fleep-header .header-balance-trigger .balance-main {
    color: #1a1c24 !important;
}

body.fleep-ui .fleep-header .header-left .logo-img,
body.fleep-ui .fleep-header .fleep-header__logo-wrap,
body.fleep-ui .fleep-header .fleep-header__logo {
    flex-shrink: 0 !important;
}

/* --- Header wallet: REAL | BONUS + avatar (desktop) --- */
body.fleep-ui .fleep-hd-wallet {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body.fleep-ui .fleep-hd-wallet__avatar {
    display: none;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: var(--fleep-elevated, #262628);
    text-decoration: none;
}

body.fleep-ui .fleep-hd-wallet__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.fleep-ui .fleep-hd-wallet__avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 700;
    color: var(--fleep-text-muted, #83898e);
    text-transform: uppercase;
}

body.fleep-ui .fleep-hd-wallet__trigger {
    min-width: 0;
}

body.fleep-ui .fleep-hd-wallet__desktop {
    display: none;
}

body.fleep-ui .fleep-hd-wallet__mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

@media (min-width: 1024px) {
    body.fleep-ui.fleep-is-auth .casino-header.fleep-header {
        min-height: var(--fleep-header-h) !important;
        height: var(--fleep-header-h) !important;
    }

    body.fleep-ui .fleep-header .header-balance-slot.fleep-hd-wallet {
        flex-shrink: 0 !important;
        min-width: auto !important;
    }

    body.fleep-ui .fleep-hd-wallet {
        gap: 12px;
    }

    body.fleep-ui .fleep-hd-wallet__avatar {
        display: block;
        width: 44px;
        height: 44px;
        border-width: 1.5px;
    }

    body.fleep-ui .fleep-hd-wallet__avatar-ph {
        font-size: 16px;
    }

    body.fleep-ui .fleep-hd-wallet__desktop {
        display: block;
    }

    body.fleep-ui .fleep-hd-wallet__mobile {
        display: none !important;
    }

    body.fleep-ui .fleep-hd-wallet__trigger,
    body.fleep-ui .fleep-header .header-center-dock .fleep-hd-wallet__trigger,
    body.fleep-ui [data-theme="dark"] .fleep-header .header-center-dock .fleep-hd-wallet__trigger,
    body.fleep-ui [data-theme="light"] .fleep-header .header-center-dock .fleep-hd-wallet__trigger,
    body.fleep-ui .fleep-header .header-balance-slot.fleep-hd-wallet .header-balance-trigger {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        min-height: auto !important;
        max-width: none !important;
        width: auto !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
    }

    body.fleep-ui .fleep-hd-wallet__trigger:hover,
    body.fleep-ui .fleep-hd-wallet__trigger.header-balance-trigger--open {
        background: transparent !important;
        border: none !important;
    }

    body.fleep-ui .fleep-hd-wallet__grid {
        display: flex;
        align-items: center;
        gap: 18px;
        flex-shrink: 0;
    }

    /* 2 строки: label сверху, валюта + сумма в одной строке */
    body.fleep-ui .fleep-hd-wallet__col {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 4px;
        flex-shrink: 0;
        min-width: 104px;
    }

    body.fleep-ui .fleep-hd-wallet__col--real {
        min-width: 118px;
    }

    body.fleep-ui .fleep-hd-wallet__col--bonus {
        min-width: 100px;
    }

    body.fleep-ui .fleep-hd-wallet__label {
        grid-column: 1 / -1;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--fleep-text-muted, #83898e);
        line-height: 1;
    }

    body.fleep-ui .fleep-hd-wallet__curr {
        grid-column: 1;
        grid-row: 2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    body.fleep-ui .fleep-hd-wallet__coin {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        object-fit: contain;
    }

    body.fleep-ui .fleep-hd-wallet__pair {
        font-size: 11px;
        font-weight: 600;
        color: var(--fleep-red, #d91000);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 72px;
    }

    body.fleep-ui .fleep-hd-wallet__chevron {
        flex-shrink: 0;
        color: var(--fleep-text-muted, #83898e);
        margin-left: 0;
    }

    body.fleep-ui .fleep-hd-wallet__chevron svg {
        width: 10px;
        height: 10px;
    }

    body.fleep-ui .fleep-hd-wallet__amount {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-family: 'JetBrains Mono', ui-monospace, monospace;
        font-size: 14px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        color: var(--fleep-text, #fff);
        line-height: 1.1;
        white-space: nowrap;
    }

    body.fleep-ui .fleep-hd-wallet__divider {
        width: 1px;
        align-self: center;
        height: 38px;
        min-height: 0;
        background: rgba(255, 255, 255, 0.12);
        flex-shrink: 0;
    }
}

html[data-theme="light"] body.fleep-ui .fleep-hd-wallet__trigger {
    background: transparent !important;
    border: none !important;
}

html[data-theme="light"] body.fleep-ui .fleep-hd-wallet__amount {
    color: #1a1c24;
}

html[data-theme="light"] body.fleep-ui .fleep-hd-wallet__divider {
    background: rgba(0, 0, 0, 0.1);
}

body.fleep-ui .header-notify-dropdown {
    background: #1d1e20 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
    font-family: Manrope, Inter, sans-serif;
    overflow: hidden;
}

body.fleep-ui .header-notify-head,
body.fleep-ui .header-notify-footer {
    background: #1d1e20 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

body.fleep-ui .header-notify-readall,
body.fleep-ui .header-notify-viewall,
body.fleep-ui .header-notify-readall:hover,
body.fleep-ui .header-notify-viewall:hover {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.fleep-ui .header-notify-sheet-handle {
    background: rgba(255, 255, 255, 0.28) !important;
}

body.fleep-ui .header-notify-sheet-close,
body.fleep-ui .header-notify-sheet-close:hover,
body.fleep-ui .header-notify-sheet-close:active {
    color: #fff !important;
    background: transparent !important;
}

body.fleep-ui .header-notify-item,
body.fleep-ui .header-notify-item:hover {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.fleep-ui .header-notify-item--unread,
body.fleep-ui .header-notify-item--unread:hover {
    background: rgba(239, 63, 73, 0.1) !important;
}

body.fleep-ui .header-notify-item--unread::after {
    background: #ef3f49 !important;
    box-shadow: none !important;
}

body.fleep-ui .header-notify-item-title,
body.fleep-ui .header-notify-item--unread .header-notify-item-title,
body.fleep-ui .header-notify-item-body,
body.fleep-ui .header-notify-item-body b,
body.fleep-ui .header-notify-item-body strong {
    color: #fff !important;
}

body.fleep-ui .header-notify-item-body a,
body.fleep-ui .header-notify-item-body a:hover {
    color: #ff6872 !important;
}

body.fleep-ui .header-notify-item-time,
body.fleep-ui .header-notify-empty {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.fleep-ui .deposit-credited-popup {
    background: #1d1e20 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

body.fleep-ui .deposit-credited-popup__title,
body.fleep-ui .deposit-credited-popup__amount,
body.fleep-ui .deposit-credited-popup__close {
    color: #fff !important;
}

body.fleep-ui .deposit-credited-popup__lead {
    color: rgba(255, 255, 255, 0.62) !important;
}

body.fleep-ui .deposit-credited-popup__icon {
    color: #ef3f49 !important;
    background: rgba(239, 63, 73, 0.12) !important;
}

body.fleep-ui .deposit-credited-popup__btn--primary,
body.fleep-ui .deposit-credited-popup__btn--primary:hover {
    background: #ef3f49 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
}

body.fleep-ui .deposit-credited-popup__btn--ghost,
body.fleep-ui .deposit-credited-popup__btn--ghost:hover {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
}

body.fleep-ui .header-notify-item .notif-cta-btn,
body.fleep-ui .header-notify-item .notif-cta-btn:hover,
body.fleep-ui #accountModal .notif-cta-btn,
body.fleep-ui #accountModal .notif-cta-btn:hover {
    background: #ef3f49 !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
