/* layout-2: top-bar-shell — ribbon + floating nav bar */

.top-bar-shell {
    position: relative;
    z-index: 5;
}

.top-bar-shell__ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-shell__ribbon-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-bar-shell__secure {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-shell__secure-link,
.top-bar-shell__mob-app {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(78, 93, 134, 0.35);
    text-decoration: none;
    transition: background 0.2s;
}

.top-bar-shell__secure-link svg,
.top-bar-shell__mob-app svg {
    fill: #fff;
    width: 15px;
    height: 15px;
}

.top-bar-shell__secure::after {
    content: "";
    width: 1px;
    height: 16px;
    margin-left: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.top-bar-shell__cashback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 10px 0 4px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(285.39deg, #ffb800 -4.36%, #fff173 115.87%);
    color: #090f1e;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.top-bar-shell__cashback-icon {
    max-height: 36px;
    margin-left: -8px;
}

.top-bar-shell__cashback-arrow {
    width: 8px;
    fill: #795805;
    flex-shrink: 0;
}

.top-bar-shell__bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    height: 28px;
    padding: 0 36px 0 0;
    border-radius: 8px;
    background: rgba(78, 93, 134, 0.35);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.top-bar-shell__bonus-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -6px;
    border-radius: 50%;
    background: linear-gradient(86.37deg, #d062ff 2.96%, #7bb0ff 99.68%);
    box-shadow: 0 5px 15px rgba(201, 85, 255, 0.35);
}

.top-bar-shell__bonus-badge svg {
    width: 16px;
}

.top-bar-shell__bonus-gift {
    position: absolute;
    right: 0;
    top: 50%;
    max-height: 48px;
    transform: translateY(-50%) translateX(20%) rotate(-12deg);
}

.top-bar-shell__platforms {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-shell__windows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-shell__windows-copy {
    line-height: 1.2;
}

.top-bar-shell__windows-copy strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.top-bar-shell__windows-copy small {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.top-bar-shell__windows-link {
    display: flex;
    width: 24px;
}

.top-bar-shell__stores {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    height: 28px;
    border-radius: 8px;
    background: rgba(78, 93, 134, 0.35);
}

.top-bar-shell__store-link {
    display: flex;
}

.top-bar-shell__store-link svg {
    width: 13px;
}

.top-bar-shell__locale-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(78, 93, 134, 0.35);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

.top-bar-shell__locale-toggle img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.top-bar-shell__bar {
    position: sticky;
    top: 0;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29, 39, 62, 0.98), rgba(17, 24, 42, 0.98));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-shell__bar-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 12px;
}

.top-bar-shell__logo {
    display: flex;
    width: 68px;
    flex-shrink: 0;
}

.top-bar-shell__logo img {
    width: 100%;
    height: auto;
}

.top-bar-shell__logo_mob {
    display: none;
}

.top-bar-shell__drawer {
    flex: 1;
    min-width: 0;
    height: 100%;
}

.top-bar-shell__nav-panel {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.top-bar-shell__logo_desk {
    display: flex;
}

.top-bar-shell__search {
    display: none;
}

.top-bar-shell__menu {
    flex: 1;
    min-width: 0;
    height: 100%;
}

.top-bar-nav__list {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 4px;
}

.top-bar-nav__item {
    display: flex;
    height: 100%;
    position: relative;
}

.top-bar-nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.top-bar-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.top-bar-nav__item.current-menu-item .top-bar-nav__link {
    color: #fff;
    background: rgba(0, 149, 255, 0.15);
    box-shadow: inset 0 -2px 0 #0095ff;
}

.top-bar-shell__auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-bar-shell__login {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(78, 93, 134, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.top-bar-shell__login:hover {
    background: #1f2747;
    color: #fff;
}

.top-bar-shell__register {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: linear-gradient(70deg, #31bc69 -8%, #089e4e 96%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.top-bar-shell__register-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 50%;
    background: linear-gradient(210deg, hsla(0, 0%, 100%, 0) 25%, hsla(0, 0%, 100%, 0.06) 48%, #fff 133%);
    font-size: 16px;
}

.top-bar-shell__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.top-bar-shell__burger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.top-bar-shell__burger span:nth-child(1) { top: 0; }
.top-bar-shell__burger span:nth-child(2),
.top-bar-shell__burger span:nth-child(3) { top: 9px; }
.top-bar-shell__burger span:nth-child(4) { top: 18px; }

@media (max-width: 1200px) {
    .top-bar-shell__logo_mob {
        display: flex;
    }

    .top-bar-shell__logo_desk {
        display: none;
    }

    .top-bar-shell__bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: 0;
        z-index: 100;
        padding: 0 16px;
    }

    .top-bar-shell__ribbon {
        padding-top: 62px;
    }

    .top-bar-shell__auth {
        margin-left: auto;
        margin-right: 12px;
    }

    .top-bar-shell__mob-app {
        display: none;
    }

    .top-bar-shell__secure::after {
        margin: 0;
    }

    .top-bar-shell__burger {
        display: flex;
    }

    .top-bar-shell__drawer {
        position: fixed;
        top: 52px;
        right: 0;
        width: 0;
        height: 100vh;
        overflow: hidden;
        z-index: 9996;
        background: linear-gradient(173deg, rgba(37, 46, 76, 0.98) 2%, rgba(25, 32, 51, 0.98));
        transition: width 0.5s ease;
    }

    .top-bar-shell__nav-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 16px 0;
        height: auto;
    }

    .top-bar-shell__search {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 16px;
        border: 1px solid #304066;
        border-radius: 8px;
    }

    .top-bar-shell__search-label {
        flex: 1;
        display: flex;
    }

    .top-bar-shell__search-input {
        width: 100%;
        height: 40px;
        padding: 0 10px;
        border: none;
        border-radius: 8px 0 0 8px;
        background: #1d273e;
        color: #fff;
    }

    .top-bar-shell__search-btn {
        height: 40px;
        padding: 0 12px;
        border: none;
        border-left: 1px solid #304066;
        border-radius: 0 8px 8px 0;
        background: #1d273e;
    }

    .top-bar-nav__list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .top-bar-nav__item {
        border-bottom: 1px solid rgba(97, 97, 97, 0.25);
    }

    .top-bar-nav__link {
        width: 100%;
        padding: 16px 10px;
        font-size: 14px;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    .top-bar-shell__bonus,
    .top-bar-shell__platforms {
        display: none;
    }
}

@media (max-width: 430px) {
    .top-bar-shell__cashback {
        display: none;
    }

    .top-bar-shell__secure::after {
        display: none;
    }
}

@media (max-width: 370px) {
    .top-bar-shell__bar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }
}
