/* Стиль баланса и депозита ТОЧНО КАК НА ФОТО MELLSTROY */

/* Контейнер баланса - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance {
    background: #2a1f3d !important; /* Темно-фиолетовый как у Mellstroy */
    border-radius: 16px !important; /* Скругленный прямоугольник */
    padding: 6px !important;
    max-width: 180px !important; /* КОРОТКАЯ ПО ШИРИНЕ */
    width: auto !important; /* Не растягивать */
    min-width: 160px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    margin: 0 auto !important;
}

/* Иконка валюты - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance .icon,
.header__user-balance .currency-icon-wrapper {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Изображение валюты внутри круга */
.header__user-balance .currency-icon-wrapper .currency-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* Скрываем старые SVG если они есть */
.header__user-balance .icon svg,
.header__user-balance .icon use {
    display: none !important;
}

/* Баланс - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance span#balance {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 4px !important;
    flex: 0 !important;
    text-align: left !important;
    position: relative !important;
    white-space: nowrap !important;
}

/* Добавляем серый шеврон вниз после баланса - ИДЕНТИЧНО МОБИЛЬНОЙ */
.header__user-balance span#balance::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 4px solid rgba(255,255,255,0.4) !important; /* Серый шеврон */
    margin-left: 5px !important;
    vertical-align: middle !important;
}

/* УБИРАЕМ chevron - его нет на фото */
.header__user-b::after {
    display: none !important;
}

/* Кнопка депозита - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance-add {
    display: flex !important;
    flex-shrink: 0 !important;
}

.header__user-balance-add .btn {
    background: #35ec90 !important; /* Яркий зеленый */
    padding: 0 6px !important;
    width: auto !important;
    min-width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important; /* Квадрат с закругленными углами */
    box-shadow: 0 2px 6px rgba(53, 236, 144, 0.3) !important;
    position: relative !important;
    border: none !important;
}

.header__user-balance-add .btn:hover {
    background: #2ed684 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(53, 236, 144, 0.5), inset 0 1px 2px rgba(255,255,255,0.3) !important;
}

/* Убираем старые стили flare */
.header__user-balance-add .btn.flare::before,
.header__user-balance-add .btn.flare::after {
    display: none !important;
}

/* Скрываем текст "Deposit" - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance-add .btn span {
    font-size: 0 !important;
    width: 18px !important;
    height: 18px !important;
    overflow: visible !important;
    line-height: 0 !important;
    display: block !important;
}

/* Черная иконка кошелька - ИДЕНТИЧНО МОБИЛЬНОЙ ВЕРСИИ */
.header__user-balance-add .btn span::before {
    content: '' !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background: url("/images/wallet-icon.png?v=1") no-repeat center center !important;
    background-size: 18px 18px !important;
    filter: brightness(0) invert(0) !important; /* Черный цвет */
}


/* Адаптивность для мобильных - ТОЧНО КАК У MELLSTROY */
@media (max-width: 1023px) {
    /* КОРОТКАЯ ПО ШИРИНЕ плашка - размеры элементов те же */
    .header__user-balance {
        background: #2a1f3d !important; /* Темно-фиолетовый как у Mellstroy */
        border-radius: 16px !important; /* Скругленный прямоугольник */
        padding: 6px !important;
        max-width: 180px !important; /* КОРОТКАЯ ПО ШИРИНЕ */
        width: auto !important; /* Не растягивать */
        min-width: 160px !important;
        gap: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        margin: 0 auto !important;
    }

    /* Иконка валюты - МЕНЬШЕ */
    .header__user-balance .icon,
    .header__user-balance .currency-icon-wrapper {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 50% !important;
        padding: 2px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Баланс с шевроном - НОРМАЛЬНЫЙ РАЗМЕР */
    .header__user-balance span#balance {
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 0 4px !important;
        flex: 0 !important;
        text-align: left !important;
        position: relative !important;
        white-space: nowrap !important;
    }

    /* Добавляем серый шеврон вниз после баланса */
    .header__user-balance span#balance::after {
        content: '' !important;
        display: inline-block !important;
        width: 0 !important;
        height: 0 !important;
        border-left: 3px solid transparent !important;
        border-right: 3px solid transparent !important;
        border-top: 4px solid rgba(255,255,255,0.4) !important; /* Серый шеврон */
        margin-left: 5px !important;
        vertical-align: middle !important;
    }

    /* Кнопка - ЗЕЛЕНЫЙ КВАДРАТ НОРМАЛЬНОГО РАЗМЕРА с иконкой */
    .header__user-balance-add {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .header__user-balance-add .btn {
        background: #35ec90 !important; /* Яркий зеленый */
        padding: 0 6px !important;
        width: auto !important;
        min-width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important; /* Квадрат с закругленными углами */
        box-shadow: 0 2px 6px rgba(53, 236, 144, 0.3) !important;
        position: relative !important;
    }

    /* Скрываем текст "Deposit" на мобильных */
    .header__user-balance-add .btn span {
        font-size: 0 !important;
        width: 18px !important;
        height: 18px !important;
        overflow: visible !important;
        line-height: 0 !important;
        display: block !important;
    }

    /* Черная иконка кошелька - ТВОЯ ИКОНКА */
    .header__user-balance-add .btn span::before {
        content: '' !important;
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        background: url("/images/wallet-icon.png?v=1") no-repeat center center !important;
        background-size: 18px 18px !important;
        filter: brightness(0) invert(0) !important; /* Черный цвет */
    }

}

