@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 10px 7px;
}

.custom-title a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-title i {
    margin-right: 12px;
    font-size: 42px;
    color: #FFFFFF;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.custom-title span {
    position: relative;
    z-index: 1;
    animation: glow 2s ease-in-out infinite, scale 2s ease-in-out infinite;
    font-size: 20px;
    font-weight: 800;

}

.custom-title span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #FFFFFF, #B0E0E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
    opacity: 0.5;
}


.custom-arrows {
    display: flex;
}

.custom-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 5px;
    transition: background .3s, transform .3s;
    border-radius: 50%;
}

.custom-arrow svg {
    width: 23px;
    height: 23px;
    fill: #fff;
}

.custom-arrow:hover,
.custom-arrow:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.custom-gallery {
    display: flex;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.custom-slide {
    flex: 0 0 auto;
    margin-right: 10px;
    position: relative;
    transition: transform .3s, filter .3s;
}


.hero_area {
    margin-top: 6rem;
}

.custom-img-wrap-provider {
    width: 200px;
    height: 120px;
    border: 2px solid #1e6f9f;
    background: linear-gradient(135deg, #0e131c, #1e6f9f);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(30, 111, 159, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-img-wrap-provider:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.6), 0 5px 7px rgba(30, 111, 159, 0.3);
}


.custom-img-wrap-provider img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@media only screen and (max-width: 1225px) {

    .mobile-menu {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #131a28;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px #00000080;
        z-index: 36;
    }

    .mobile-menu a {
        color: #fff;
        text-align: center;
        text-decoration: none;
        flex-grow: 1
    }

    .mobile-menu a span {
        display: block;
        font-size: 12px;
        margin-top: 5px
    }

    .mobile-menu a.active {
        color: #00bfff
    }

    .mobile-menu i {
        font-size: 24px;
        color: #a1a1a1;
        transition: all .3s
    }

    .mobile-menu i:hover {
        color: #fff
    }
}

/* Nidabet style For game category */
@media (max-width: 576px) {
    .hero_area__main .row {
        display: flex;
        flex-wrap: wrap;
    }

    .hero_area__main .col-3 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
        padding: 5px;
    }
}

@media (min-width: 577px) {
    .hero_area__main .col-3,
    .hero_area__main .col-sm-6,
    .hero_area__main .col-md-4,
    .hero_area__main .col-lg-2 {
        padding: 10px;
    }
}

@media (max-width: 991px) {
    .game_categories {
        margin: 0;
        padding-left: 25px;
    }
}

.game_category_image {
    position: relative;
    overflow: hidden;
}

.game_category_image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game_category_image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.game_categories {
    margin-top: 6rem;
}


.language-area {
    position: relative;
    /*width: 200px; !* Можно подкорректировать по ширине *!*/
}

.translate_wrapper {
    background-color: rgb(8, 15, 37); /* Задний фон */
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #fff; /* Цвет текста */
}

.current_lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.current_lang img {
    width: 24px; /* Размер иконки */
    height: 24px;
}

.current_lang .lang-txt {
    font-weight: bold;
    margin-left: 10px;
    color: #fff; /* Цвет текста */
}

.more_lang {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(8, 15, 37);
    z-index: 1000;
    width: 100%;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.more_lang .currency-option {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    /*width: 179px;*/
}

.more_lang .currency-option img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.more_lang .currency-option:hover {
    background: #1a1e3a;
}

.selected {
    background: #1a1e3a;
}

.cmn-btn {
    padding: 10px 20px;
    background-color: #35c31e;
    border: 3px solid #35c31e !important;
    border-radius: 5px;
    cursor: pointer;
    transition: .5s linear;
    color: #fff;
    font-weight: 600;
    margin: 3px;
}

@media (max-width: 991px) {
    .header-section2 .navbar {
        margin-left: 14px;
        border-left: none;
        height: 79px;
    }
}


.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}

.modal-content input:focus {
    /*background-color: rgba(255, 255, 255, 0.2);*/
    color: black;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.8),
    0 as0 20px rgba(30, 144, 255, 0.6),
    0 0 30px rgba(30, 144, 255, 0.4);
}

.modal-content input {
    width: 100%;
    padding: 15px;
    font-size: 18px; /* Устанавливаем тот же размер шрифта, что и у плейсхолдера */
    font-weight: 600; /* Устанавливаем ту же толщину шрифта, что и у плейсхолдера */
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    /*background-color: rgba(255, 255, 255, 0.2);*/
    color: rgba(255, 255, 255, 0.89);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    margin-bottom: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.89);
    font-weight: 600;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

.modal-content button {
    padding: 15px 30px;
    font-size: 20px;
    border: none;
    background-color: #1e90ff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.5);
}

.modal-content button:hover {
    background-color: #0a74d3;
    transform: translateY(-2px);
}

.shiny-button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.shiny-button::before,
.shiny-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: shine 3s infinite;
}

.shiny-button::before {
    top: 0;
    left: -100%;
}

.shiny-button::after {
    bottom: 0;
    right: -100%;
    animation-delay: 1.5s;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.shiny-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) rotate(0deg);
    animation: additionalShine 5s infinite;
    pointer-events: none;
}

@keyframes additionalShine {
    0% {
        transform: translateY(-50%) translateX(-100%) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) translateX(100%) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-50%) translateX(100%) rotate(0deg);
        opacity: 0;
    }
}


.custom-img-wrap {
    position: relative;
    margin-bottom: 10px;
}

.custom-img-wrap a {
    display: block;
    pointer-events: auto;
}


.custom-game-card-wrap {
    transition: transform 0.3s ease;
}

.custom-game-card-wrap:hover {
    transform: translateY(-10px);
}

.custom-img-wrap img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}


/* Glavnaya slider */

.custom-img-wrap-slider img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

/* Like blok */

.likescount {
    position: absolute;
    top: 3px;
    left: -10px;
    background: rgba(19, 26, 40, 0.37);
    padding: 6px 12px 0px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.likescount span {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    display: inline-block;
}

.likescount button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    display: flex; /* Flexbox для иконки */
    align-items: center;
    justify-content: center;
    padding: 0; /* Убираем лишние отступы */
}

.text-success {
    color: greenyellow !important; /* Устанавливаем цвет как greenyellow */
}

.likescount i {
    transition: color 0.3s ease; /* Плавный переход цвета */
}

.likescount button:hover i {
    color: greenyellow; /* Зеленый цвет при наведении */
}


.favoritescount {
    position: absolute;
    top: 3px;
    right: -10px;
    background: rgba(19, 26, 40, 0.37);
    padding: 6px 12px 0px; /* Увеличенный отступ для аккуратности */
    border-radius: 12px;
    display: flex; /* Flexbox для выравнивания */
    align-items: center; /* Вертикальное выравнивание по центру */
    gap: 8px; /* Расстояние между кнопкой и количеством лайков */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Поверх остальных элементов */
}

.favoritescount button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    display: flex; /* Flexbox для иконки */
    align-items: center;
    justify-content: center;
    padding: 0; /* Убираем лишние отступы */
}

.favoritescount span {
    font-size: 14px; /* Уменьшенный размер для аккуратности */
    color: #fff;
    font-weight: 600;
    display: inline-block; /* Гарантируем правильное позиционирование */
    margin-bottom: 10px;
}

.favoritescount i {
    transition: color 0.3s ease;
}

.favoritescount button:hover i {
    color: #ffd700; /* Золотой цвет при наведении */
}

.favoritescount i.text-warning {
    color: #ffd700; /* Постоянный золотой цвет для избранных игр */
}


@media (max-width: 576px) {
    button.btn-icon {
        font-size: 18px !important;
        background: none !important;
        padding: 5px 10px !important;
        border: none !important;
        color: white !important;
        border-radius: 4px !important;
        text-shadow: 3px 3px 6px rgb(0 0 0 / 28%) !important;
        box-shadow: 0 0 5px 1px #00000045 !important;
    }
}

button.btn-icon {
    font-size: 18px;
    background: none;
    align-content: normal;
    border: none;
    color: white;
    cursor: pointer;
    transition: color .4s;
}


.pagination-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #212b40;
    border: 2px solid #212b40;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background-color: #6c757d;
    border-color: #6c757d;
}

.pagination .page-item .page-link:focus {
    box-shadow: none;
}

.pagination .page-link span {
    line-height: 1;
}

.profile_wrapper {
    position: relative;
    /*width: 212px;*/
    background-color: transparent;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile {
    background-color: #202b3f;
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /*width: 202px;*/
}

.profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.profile:hover {
    background-color: #343a40;
}

.profile i {
    margin-left: auto;
    font-size: 14px;
}

.more_menu_profile {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #202b3f;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.more_menu_profile.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.more_menu_profile .profile-option {
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #2a3a4f;
}

.more_menu_profile .profile-option:hover {
    background-color: #343a40;
}

.more_menu_profile .profile-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-lang-txt {
    font-size: 16px;
}

.more_menu_profile .profile-option:last-child {
    margin-bottom: 0;
}

.send-money-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.send-money-popup {
    background-color: #202b3f;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.send-money-popup-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.send-money-popup-close-icon:hover {
    color: #ff4c4c;
}

.send-money-popup img {
    margin-bottom: 20px;
    max-width: 60%;
    height: auto;
}

.send-money-popup-form {
    display: flex;
    flex-direction: column;
}

.send-money-popup-input {
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background-color: #2a3a4f;
    color: white;
    font-size: 16px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.send-money-popup-input::placeholder {
    color: #bbb;
}

.send-money-popup-input:focus {
    background-color: #34475d;
    outline: none;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
}

.send-money-popup-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.send-money-popup-button:hover {
    background-color: #45a049;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .send-money-popup {
        width: 95%;
        max-width: 380px;
    }

    .send-money-popup-title {
        font-size: 20px;
    }

    .send-money-popup-input {
        font-size: 14px;
    }

    .send-money-popup-button {
        font-size: 14px;
    }

    .send-money-popup img {
        max-width: 70%;
    }

    .send-money-popup-close-icon {
        font-size: 36px;
    }
}

#toast-container {
    margin-top: 4.5rem;
}

.likescount,
.favoritescount {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon i {
    font-size: 18px;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.like-count {
    font-size: 14px;
    margin-left: 5px;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(45deg, #232526, #414345);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    height: calc(100vh - var(--header-height, 100px));
}

iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1000px) {
    .game-container {
        height: calc(100vh - var(--header-height, 70px));
    }
}


.fullscreen-icon {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #414345, #232526);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.fullscreen-icon:hover {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, #3a3b3c, #1c1d1e);
}

.fullscreen-icon i {
    color: white;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.fullscreen-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
}

.language-dropdown {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.language-dropdown .dropdown-toggle {
    width: 100%;
    /*background-color: #33425e;*/
    color: white;
    padding: 10px;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.language-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background: #33425e;
    border: none;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1000;
    height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.language-dropdown.open .dropdown-menu {
    display: block;
}

.language-dropdown .dropdown-menu li {
    padding: 0;
}

.language-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    background: #33425e;
    width: 100%;
}

.language-dropdown .dropdown-menu li a:hover {
    background-color: #425475;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-sport {
    display: inline-block;
    font-size: 1.5rem;
    color: #ffffff;
    animation: spin 2s linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.icon-sport:hover {
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Стили для Betby */
#bettech-container {
    width: 100%;
    height: calc(100vh - var(--header-height, 100px));
    padding-top: var(--bettech-margin-top, 0);
    background-color: #1a1a1a;
    margin: 0;
    overflow: hidden;
}

#bettech {
    width: 100%;
    height: 100%;
}

/* Premium Design для сочетания с BTRENDERER rgb(18, 34, 43) */
.header-section {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.95) 0%, rgba(24, 44, 56, 0.98) 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 63, 76, 0.3);
    box-shadow: 0 4px 20px rgba(18, 34, 43, 0.4);
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 63, 76, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

/* Премиум навигация */
.header-section .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 12px 18px !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 2px;
}

.header-section .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(42, 63, 76, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 34, 43, 0.3);
}

.header-section .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(42, 63, 76, 0.6), rgba(24, 44, 56, 0.8));
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(18, 34, 43, 0.4);
}

/* Премиум кнопки */
.cmn-btn {
    background: linear-gradient(135deg, #2a3f4c 0%, #1a2a35 100%) !important;
    border: 2px solid rgba(42, 63, 76, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(18, 34, 43, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cmn-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 34, 43, 0.4);
    border-color: rgba(52, 73, 94, 0.9) !important;
}

/* Премиум модальные окна */
.modal-content {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.95) 0%, rgba(24, 44, 56, 0.98) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(42, 63, 76, 0.4);
    box-shadow: 0 20px 40px rgba(18, 34, 43, 0.5);
}

/* Премиум поля ввода */
.modal-content input,
.send-money-popup-input {
    background: rgba(24, 44, 56, 0.6) !important;
    border: 1px solid rgba(42, 63, 76, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal-content input:focus,
.send-money-popup-input:focus {
    background: rgba(34, 54, 68, 0.8) !important;
    border-color: rgba(42, 63, 76, 0.8);
    box-shadow: 0 0 20px rgba(18, 34, 43, 0.4) !important;
}

/* Премиум профиль */
.profile {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.8) 0%, rgba(24, 44, 56, 0.9) 100%) !important;
    border: 1px solid rgba(42, 63, 76, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(18, 34, 43, 0.2);
}

.profile:hover {
    background: linear-gradient(135deg, rgba(24, 44, 56, 0.9) 0%, rgba(34, 54, 68, 1) 100%) !important;
    box-shadow: 0 6px 20px rgba(18, 34, 43, 0.3);
}

.more_menu_profile {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.95) 0%, rgba(24, 44, 56, 0.98) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(42, 63, 76, 0.4);
    box-shadow: 0 15px 35px rgba(18, 34, 43, 0.4);
}

.more_menu_profile .profile-option {
    background: rgba(24, 44, 56, 0.5) !important;
    border: 1px solid rgba(42, 63, 76, 0.2);
    transition: all 0.3s ease;
}

.more_menu_profile .profile-option:hover {
    background: rgba(34, 54, 68, 0.8) !important;
    border-color: rgba(42, 63, 76, 0.4);
    transform: translateX(3px);
}

/* Премиум игровые карточки */
.custom-img-wrap {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-img-wrap:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(18, 34, 43, 0.4);
}

.custom-img-wrap img {
    border: 2px solid rgba(42, 63, 76, 0.3);
    transition: all 0.3s ease;
}

.custom-img-wrap:hover img {
    border-color: rgba(42, 63, 76, 0.6);
    filter: brightness(1.1) saturate(1.1);
}

/* Премиум мобильное меню */
.mobile-menu {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.95) 0%, rgba(24, 44, 56, 0.98) 100%) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(42, 63, 76, 0.3);
    box-shadow: 0 -4px 20px rgba(18, 34, 43, 0.4);
}

.mobile-menu a {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(42, 63, 76, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 34, 43, 0.3);
}

/* Акцентный цвет для совместимости с BTRENDERER */
:root {
    --btrenderer-primary: 18, 34, 43;
    --btrenderer-secondary: 42, 63, 76;
    --btrenderer-accent: 24, 44, 56;
}

/* Premium Header Controls - Валюта, Уведомления, Профиль */
.d-flex.align-items-center {
    gap: 20px;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

/* Обеспечиваем правильное поведение основного контейнера хедера */
.header-section .container,
.header-section .container-fluid {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.header-section .navbar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* === ВАЛЮТНЫЙ ДРОПДАУН === */
.language-area {
    position: relative;
    min-width: 180px;
}

/* === ОБЛАСТЬ ПРОФИЛЯ === */
.profile-area {
    position: relative;
    min-width: 180px;
}

.translate_wrapper {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.9) 0%, rgba(24, 44, 56, 0.95) 100%) !important;
    border: 1px solid rgba(42, 63, 76, 0.4);
    border-radius: 12px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(18, 34, 43, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.translate_wrapper:hover {
    background: linear-gradient(135deg, rgba(24, 44, 56, 0.95) 0%, rgba(34, 54, 68, 1) 100%) !important;
    border-color: rgba(42, 63, 76, 0.6);
    box-shadow: 0 6px 20px rgba(18, 34, 43, 0.4);
    transform: translateY(-1px);
}

.translate_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 63, 76, 0.1) 50%, transparent 100%);
    border-radius: 12px;
    pointer-events: none;
}

.current_lang .lang {
    cursor: pointer;
    padding: 4px 0;
}

.current_lang .lang img {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid rgba(42, 63, 76, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(18, 34, 43, 0.2);
}

.current_lang .lang:hover img {
    border-color: rgba(42, 63, 76, 0.6);
    transform: scale(1.05);
}

.current_lang .lang-txt {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.current_lang .ti-arrow-badge-down-filled {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    font-size: 18px !important;
}

.translate_wrapper:hover .ti-arrow-badge-down-filled {
    color: #ffffff !important;
    transform: rotate(180deg);
}

/* Дропдаун валют */
.more_lang {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.98) 0%, rgba(24, 44, 56, 0.99) 100%) !important;
    border: 1px solid rgba(42, 63, 76, 0.4) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 15px 35px rgba(18, 34, 43, 0.5) !important;
    z-index: 1000 !important;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.more_lang[style*="block"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.currency-option-form {
    margin: 0;
    padding: 0;
}

.currency-option {
    padding: 12px 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    border-bottom: 1px solid rgba(42, 63, 76, 0.2) !important;
    background: transparent !important;
}

.currency-option:last-child {
    border-bottom: none !important;
}

.currency-option:hover {
    background: rgba(42, 63, 76, 0.4) !important;
    transform: translateX(5px);
    box-shadow: inset 3px 0 0 rgba(42, 63, 76, 0.8);
}

.currency-option img {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid rgba(42, 63, 76, 0.3) !important;
    transition: all 0.3s ease !important;
}

.currency-option:hover img {
    border-color: rgba(42, 63, 76, 0.6) !important;
    transform: scale(1.1);
}

.currency-option .lang-txt {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.currency-option:hover .lang-txt {
    color: #ffffff !important;
}

/* === УВЕДОМЛЕНИЯ === */
.notifications {
    position: relative;
}

.notifications a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.8) 0%, rgba(24, 44, 56, 0.9) 100%);
    border: 1px solid rgba(42, 63, 76, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(18, 34, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.notifications a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transition: all 0.6s ease;
}

.notifications a:hover::before {
    left: 100%;
}

.notifications a:hover {
    background: linear-gradient(135deg, rgba(24, 44, 56, 0.9) 0%, rgba(34, 54, 68, 1) 100%);
    border-color: rgba(42, 63, 76, 0.6);
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(18, 34, 43, 0.4);
}

.notifications a i {
    font-size: 22px !important;
    z-index: 1;
    position: relative;
}

/* Анимация пульсации для уведомлений */
@keyframes pulse-notification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.notifications a:hover {
    animation: pulse-notification 2s infinite;
}

/* === ПРОФИЛЬ === */

.profile_wrapper {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.profile {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.8) 0%, rgba(24, 44, 56, 0.9) 100%) !important;
    border: 1px solid rgba(42, 63, 76, 0.3) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(18, 34, 43, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 63, 76, 0.1) 50%, transparent 100%);
    border-radius: 12px;
    pointer-events: none;
}

.profile:hover {
    background: linear-gradient(135deg, rgba(24, 44, 56, 0.9) 0%, rgba(34, 54, 68, 1) 100%) !important;
    border-color: rgba(42, 63, 76, 0.6) !important;
    box-shadow: 0 6px 20px rgba(18, 34, 43, 0.3) !important;
    transform: translateY(-1px);
}

.profile img {
    width: 36px !important;
    height: 36px !important;
    border: 2px solid rgba(42, 63, 76, 0.4) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(18, 34, 43, 0.3);
}

.profile:hover img {
    border-color: rgba(42, 63, 76, 0.7) !important;
    transform: scale(1.05);
}

.profile .ti-arrow-badge-down-filled {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
}

.profile:hover .ti-arrow-badge-down-filled {
    color: #ffffff !important;
    transform: rotate(180deg);
}

/* Дропдаун профиля */
.more_menu_profile {
    background: linear-gradient(135deg, rgba(18, 34, 43, 0.98) 0%, rgba(24, 44, 56, 0.99) 100%) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(42, 63, 76, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(18, 34, 43, 0.5) !important;
    padding: 8px !important;
    width: 200px !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more_menu_profile.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.more_menu_profile .profile-option {
    background: rgba(24, 44, 56, 0.3) !important;
    border: 1px solid rgba(42, 63, 76, 0.2) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 6px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.more_menu_profile .profile-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 63, 76, 0.2) 50%, transparent 100%);
    transition: all 0.6s ease;
}

.more_menu_profile .profile-option:hover::before {
    left: 100%;
}

.more_menu_profile .profile-option:hover {
    background: rgba(34, 54, 68, 0.6) !important;
    border-color: rgba(42, 63, 76, 0.4) !important;
    transform: translateX(5px);
    box-shadow: inset 3px 0 0 rgba(42, 63, 76, 0.8);
}

.more_menu_profile .profile-option:last-child {
    margin-bottom: 0 !important;
}

.more_menu_profile .profile-option img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin-right: 12px !important;
    filter: brightness(0.9);
}

.more_menu_profile .profile-option:hover img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.more_menu_profile .profile-option .profile-lang-txt {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    z-index: 1;
    position: relative;
}

.more_menu_profile .profile-option:hover .profile-lang-txt {
    color: #ffffff !important;
}

.more_menu_profile .profile-option a {
    color: inherit !important;
    text-decoration: none !important;
}

/* === ЛОГОТИП === */
.logo-wrapper {
    margin-left: 5rem;
    transition: all 0.3s ease;
}

.logo-wrapper .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

/* Premium Logo Text - Override ALL conflicts */
.logo-wrapper .navbar-brand .premium-logo-text,
.navbar-brand .premium-logo-text,
.premium-logo-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: 2px !important;
    user-select: none !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.premium-logo-text .bet-text {
    color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2) !important;
    font-weight: 900 !important;
    font-size: inherit !important;
    animation: subtleGlow 4s ease-in-out infinite !important;
}

.premium-logo-text .nida-text {
    color: #00BFFF !important;
    position: relative !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 191, 255, 0.3) !important;
    font-weight: 900 !important;
    font-size: inherit !important;
    animation: subtleGlow 4s ease-in-out infinite 1s !important;
}

/* Subtle glow animation */
@keyframes subtleGlow {
    0%, 100% { 
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(255, 255, 255, 0.4);
        filter: brightness(1.1);
    }
}

/* Elegant shimmer effect */
.premium-logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: gentleShimmer 6s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

@keyframes gentleShimmer {
    0% { left: -50%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Simple hover effect */
.logo-wrapper:hover .premium-logo-text .bet-text {
    color: #f0f8ff !important;
    animation-duration: 2s !important;
}

.logo-wrapper:hover .premium-logo-text .nida-text {
    color: #00BFFF !important;
    animation-duration: 2s !important;
}

.logo-wrapper:hover .premium-logo-text::after {
    animation-duration: 3s !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    /* Главный контейнер хедера - обеспечиваем правильное распределение места */
    .header-section .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }
    
    .d-flex.align-items-center {
        gap: 8px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }
    
    .language-area {
        min-width: 120px !important;
        flex-shrink: 0 !important;
    }
    
    .translate_wrapper {
        padding: 4px 8px !important;
        min-width: 110px !important;
    }
    
    .current_lang .lang {
        min-width: 110px !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .current_lang .lang-txt {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60px !important;
    }
    
    .notifications a {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    
    .profile-area {
        min-width: 120px !important;
        flex-shrink: 0 !important;
    }
    
    .profile {
        padding: 4px 8px !important;
        min-width: 110px !important;
        flex-shrink: 0 !important;
    }
    
    .current_lang .lang img,
    .profile img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .logo-wrapper {
        margin-left: 8px !important;
        flex-grow: 1 !important;
        max-width: calc(100% - 250px) !important;
        overflow: hidden !important;
    }
    
    /* Mobile logo adjustments */
    .logo-wrapper .navbar-brand .premium-logo-text,
    .navbar-brand .premium-logo-text,
    .premium-logo-text {
        font-size: 20px !important;
        letter-spacing: 0.8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    /* Еще более компактное размещение для маленьких экранов */
    .d-flex.align-items-center {
        gap: 6px !important;
    }
    
    .language-area {
        min-width: 100px !important;
    }
    
    .translate_wrapper {
        padding: 3px 6px !important;
        min-width: 95px !important;
    }
    
    .current_lang .lang {
        min-width: 95px !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .current_lang .lang-txt {
        font-size: 11px !important;
        max-width: 50px !important;
    }
    
    .notifications a {
        width: 34px !important;
        height: 34px !important;
    }
    
    .notifications a i {
        font-size: 18px !important;
    }
    
    .profile-area {
        min-width: 100px !important;
    }
    
    .profile {
        padding: 3px 6px !important;
        min-width: 95px !important;
    }
    
    .current_lang .lang img,
    .profile img {
        width: 22px !important;
        height: 22px !important;
    }
    
    .logo-wrapper {
        margin-left: -7px !important;
        max-width: calc(100% - 220px) !important;
    }
    
    .logo-wrapper .navbar-brand .premium-logo-text,
    .navbar-brand .premium-logo-text,
    .premium-logo-text {
        font-size: 18px !important;
        letter-spacing: 0.5px !important;
    }
}

@media (max-width: 360px) {
    /* Максимально компактное размещение для очень маленьких экранов */
    .d-flex.align-items-center {
        gap: 4px !important;
    }
    
    .language-area {
        min-width: 75px !important;
    }
    
    .translate_wrapper {
        padding: 2px 4px !important;
        min-width: 70px !important;
    }
    
    .current_lang .lang {
        min-width: 70px !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .current_lang .lang-txt {
        font-size: 9px !important;
        max-width: 35px !important;
    }
    
    .notifications a {
        width: 28px !important;
        height: 28px !important;
    }
    
    .notifications a i {
        font-size: 14px !important;
    }
    
    .profile-area {
        min-width: 75px !important;
    }
    
    .profile {
        padding: 2px 4px !important;
        min-width: 70px !important;
    }
    
    .current_lang .lang img,
    .profile img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .logo-wrapper {
        margin-left: 2px !important;
        max-width: calc(100% - 160px) !important;
    }
    
    .logo-wrapper .navbar-brand .premium-logo-text,
    .navbar-brand .premium-logo-text,
    .premium-logo-text {
        font-size: 15px !important;
        letter-spacing: 0.2px !important;
    }
}

/* Специальное правило для экранов меньше 336px */
@media (max-width: 336px) {
    /* Ультра компактное размещение для самых маленьких экранов */
    .header-section .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .d-flex.align-items-center {
        gap: 3px !important;
    }
    
    .language-area {
        min-width: 65px !important;
    }
    
    .translate_wrapper {
        padding: 1px 3px !important;
        min-width: 60px !important;
    }
    
    .current_lang .lang {
        min-width: 60px !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .current_lang .lang-txt {
        font-size: 8px !important;
        max-width: 30px !important;
    }
    
    .notifications a {
        width: 26px !important;
        height: 26px !important;
    }
    
    .notifications a i {
        font-size: 12px !important;
    }
    
    .profile-area {
        min-width: 65px !important;
    }
    
    .profile {
        padding: 1px 3px !important;
        min-width: 60px !important;
    }
    
    .current_lang .lang img,
    .profile img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .logo-wrapper {
        margin-left: 1px !important;
        max-width: calc(100% - 130px) !important;
        flex-grow: 1 !important;
    }
    
    .logo-wrapper .navbar-brand .premium-logo-text,
    .navbar-brand .premium-logo-text,
    .premium-logo-text {
        font-size: 13px !important;
        letter-spacing: 0.1px !important;
    }
    
    /* Убираем лишние отступы у стрелочек */
    .current_lang .ti-arrow-badge-down-filled,
    .profile .ti-arrow-badge-down-filled {
        font-size: 12px !important;
        margin-left: 2px !important;
    }
}

/* Критическое правило для экранов меньше 300px */
@media (max-width: 300px) {
    /* Критически компактное размещение */
    .header-section .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    
    .d-flex.align-items-center {
        gap: 2px !important;
    }
    
    .language-area {
        min-width: 55px !important;
    }
    
    .translate_wrapper {
        padding: 1px 2px !important;
        min-width: 50px !important;
    }
    
    .current_lang .lang {
        min-width: 50px !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .current_lang .lang-txt {
        font-size: 7px !important;
        max-width: 25px !important;
    }
    
    .notifications a {
        width: 24px !important;
        height: 24px !important;
    }
    
    .notifications a i {
        font-size: 10px !important;
    }
    
    .profile-area {
        min-width: 55px !important;
    }
    
    .profile {
        padding: 1px 2px !important;
        min-width: 50px !important;
    }
    
    .current_lang .lang img,
    .profile img {
        width: 14px !important;
        height: 14px !important;
    }
    
    .logo-wrapper {
        margin-left: 1px !important;
        max-width: calc(100% - 110px) !important;
        flex-grow: 1 !important;
    }
    
    .logo-wrapper .navbar-brand .premium-logo-text,
    .navbar-brand .premium-logo-text,
    .premium-logo-text {
        font-size: 11px !important;
        letter-spacing: 0px !important;
    }
    
    .current_lang .ti-arrow-badge-down-filled,
    .profile .ti-arrow-badge-down-filled {
        font-size: 10px !important;
        margin-left: 1px !important;
    }
    
    /* Полностью скрываем текст валют на критично маленьких экранах */
    .current_lang .lang-txt {
        display: none !important;
    }
    
    /* Показываем только иконку валюты */
    .language-area {
        min-width: 30px !important;
    }
    
    .translate_wrapper {
        min-width: 25px !important;
    }
    
    .current_lang .lang {
        min-width: 25px !important;
        display: flex !important;
        align-items: center !important;
        gap: 1px !important;
    }
    
    /* Синхронизируем размер блока профиля с валютным блоком */
    .profile-area {
        min-width: 30px !important;
    }
    
    .profile {
        min-width: 25px !important;
    }
    
    /* Пересчитываем ширину логотипа с учетом скрытого текста */
    .logo-wrapper {
        max-width: calc(100% - 80px) !important;
    }
}

/* Дополнительные правила для обеспечения корректного отображения */
@media (max-width: 576px) {
    /* Отключаем лишние отступы в навбаре */
    .header-section .navbar-nav {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Обеспечиваем что элементы не ломают строку */
    .navbar-collapse {
        flex-grow: 0 !important;
    }
    
    /* Главный контейнер должен использовать всю ширину эффективно */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
