.acc-header {
    position: relative;
    z-index: 999;
    background: #ffffff;
    font-family: Inter, system-ui, sans-serif;
}

.acc-header a {
    text-decoration: none;
}

.acc-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.acc-topbar {
    background: #3e3e3e;
    color: #ffffff;
    font-size: 13px;
}

.acc-topbar-inner {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.acc-top-left {
    font-weight: 600;
    font-size: 12px;
}

.acc-top-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 700;
}

.acc-top-right a,
.acc-lang-btn {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.acc-top-right a:hover,
.acc-lang-btn:hover {
    color: #d9ff00;
}

.acc-lang-wrap {
    position: relative;
}

.acc-lang-menu {
    position: absolute;
    top: 27px;
    right: 0;
    width: 130px;
    background: #ffffff;
    border: 1px solid #d7dee8;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    display: none;
    z-index: 9999;
}

.acc-lang-menu.show {
    display: block;
}

.acc-lang-menu a {
    color: #17212f;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf3f6;
    font-size: 13px;
    font-weight: 700;
}

.acc-lang-menu a:hover {
    background: #f1f5f9;
    color: #168bd1;
}

.flag-en,
.flag-ru {
    width: 22px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,.25);
}

.flag-en {
    background: linear-gradient(90deg, #1f4fa3 0 33%, #ffffff 33% 66%, #d91e36 66%);
}

.flag-ru {
    background: linear-gradient(#ffffff 0 33%, #2563eb 33% 66%, #ef4444 66%);
}

.acc-menubar {
    background: #ffffff;
    border-bottom: 1px solid #dfe3e8;
}

.acc-menubar-inner {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.acc-menu-left,
.acc-menu-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.acc-menu-link {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.acc-menu-link:hover,
.acc-menu-link.active {
    color: #28a745;
}

.acc-mainbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.acc-mainbar-inner {
    height: 76px;
    display: grid;
    grid-template-columns: 190px 230px 1fr 160px 46px;
    gap: 14px;
    align-items: center;
}

.acc-market-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #222222;
    font-size: 25px;
    font-weight: 500;
}

.acc-market-logo span {
    background: #d71920;
    color: #ffffff;
    padding: 8px 13px;
    border-radius: 4px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
}

.acc-market-logo strong {
    font-weight: 500;
}

.acc-category-wrap {
    position: relative;
}

.acc-category-btn {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #28a745;
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    cursor: pointer;
}

.acc-category-btn span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.acc-category-menu {
    position: absolute;
    top: 45px;
    left: 0;
    width: 285px;
    background: #ffffff;
    border: 1px solid #d7dee8;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    z-index: 9999;
    display: none;
}

.acc-category-menu.show {
    display: block;
}

.acc-category-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    color: #344456;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #edf3f6;
}

.acc-category-menu a:hover {
    background: #f1f5f9;
    color: #168bd1;
}

.acc-category-menu a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-category-menu a span i {
    width: 18px;
    color: #64748b;
}

.acc-empty-category {
    display: block;
    padding: 12px;
    color: #64748b;
    font-size: 14px;
}

.acc-search {
    height: 38px;
    border: 1px solid #bfc8d2;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.acc-search-btn {
    width: 44px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #8a9aaa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    flex: 0 0 44px;
}

.acc-search-btn:hover {
    color: #28a745;
}

.acc-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    padding-right: 10px;
}

.acc-advanced {
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #28a745;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.acc-advanced:hover {
    background: #218838;
    color: #ffffff;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #d7dee8;
    border-radius: 50%;
    background: #f8fbff;
    color: #005b9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.theme-toggle:hover {
    background: #eaf6ff;
}

.acc-newsbar {
    height: 31px;
    background: #eaff00;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #202020;
    font-weight: 900;
    border-bottom: 1px solid #d7e600;
}

.acc-news-track {
    white-space: nowrap;
    animation: accNews 22s linear infinite;
    font-size: 16px;
}

@keyframes accNews {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.acc-mobile-toggle {
    display: none;
    height: 38px;
    width: 42px;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    cursor: pointer;
}

.acc-mobile-search-toggle {
    display: none;
    height: 38px;
    width: 42px;
    border: 0;
    background: transparent;
    color: #22c55e;
    font-size: 23px;
    cursor: pointer;
}

.dark-mode .acc-header,
.dark-mode .acc-menubar,
.dark-mode .acc-mainbar,
.dark-mode .acc-category-menu,
.dark-mode .acc-search,
.dark-mode .acc-lang-menu {
    background: var(--card);
    border-color: var(--border);
}

.dark-mode .acc-menu-link,
.dark-mode .acc-market-logo,
.dark-mode .acc-category-menu a,
.dark-mode .acc-lang-menu a,
.dark-mode .acc-search input {
    color: var(--text);
}

.dark-mode .theme-toggle {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

.dark-mode .acc-menu-link {
    border-color: var(--border);
}

@media (min-width: 1051px) {
    .acc-mainbar-inner {
        grid-template-columns: 190px 230px 1fr 160px 46px;
    }

    .acc-market-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .acc-category-wrap {
        grid-column: 2;
        grid-row: 1;
    }

    .acc-search {
        grid-column: 3;
        grid-row: 1;
        display: flex;
    }

    .acc-advanced {
        grid-column: 4;
        grid-row: 1;
        display: inline-flex;
    }

    .theme-toggle {
        grid-column: 5;
        grid-row: 1;
        display: inline-flex;
    }

    .acc-mobile-search-toggle {
        display: none;
    }
}

@media (max-width: 1050px) {
    .acc-header {
        max-width: 400px;
        margin: 0 auto;
        background: #ffffff;
    }

    .acc-container {
        padding: 0 14px;
    }

    .acc-topbar {
        background: #3e3e3e;
    }

    .acc-topbar-inner {
        height: 83px;
        padding-top: 0;
        padding-bottom: 0;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 14px;
    }

    .acc-top-left {
        font-size: 12px;
        color: #ffffff;
        font-weight: 500;
    }

    .acc-top-right {
        display: contents;
    }

    .acc-top-right a[href*="blog"] {
        grid-column: 2;
        grid-row: 1;
        color: #caffcc;
        font-size: 12px;
        text-decoration: underline;
        justify-self: end;
        align-self: start;
        margin-top: 11px;
    }

    .acc-top-right a[href*="account"] {
        grid-column: 2;
        grid-row: 1;
        width: 28px;
        height: 28px;
        background: #28a745;
        border-radius: 4px;
        color: #ffffff;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        justify-self: end;
        align-self: end;
        margin-bottom: 9px;
        font-size: 0;
    }

    .acc-top-right a[href*="account"] i {
        font-size: 14px;
    }

    .acc-lang-wrap {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-self: end;
        margin-top: 10px;
    }

    .acc-lang-btn {
        font-size: 0;
    }

    .acc-lang-btn .flag-en {
        display: inline-block;
    }

    .acc-lang-btn i {
        font-size: 12px;
    }

    .acc-lang-menu {
        top: 24px;
        right: 0;
    }

    .acc-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: end;
        margin-bottom: 9px;
        width: 36px;
        height: 32px;
        border: 0;
        background: transparent;
        color: #ffffff;
        font-size: 32px;
    }

    .acc-menubar {
        display: none;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }

    .acc-header.mobile-open .acc-menubar {
        display: block;
    }

    .acc-menubar-inner {
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        display: block;
    }

    .acc-menu-left,
    .acc-menu-right {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .acc-menu-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #edf3f6;
        justify-content: flex-start;
        color: #111827;
        font-size: 15px;
    }

    .acc-mainbar-inner {
        height: auto;
        padding-top: 8px;
        padding-bottom: 14px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
    }

    .acc-market-logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 22px;
        gap: 9px;
    }

    .acc-market-logo span {
        padding: 8px 13px;
    }

    .acc-mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .theme-toggle {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 38px;
        height: 38px;
    }

    .acc-category-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .acc-category-btn {
        height: 36px;
        width: 100%;
    }

    .acc-category-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 4px;
    }

    .acc-search {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        height: 34px;
        display: none;
    }

    .acc-advanced {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        height: 34px;
        display: none;
    }

    .acc-header.search-open .acc-search,
    .acc-header.search-open .acc-advanced {
        display: flex;
    }

    .acc-header.search-open .acc-search {
        grid-row: 3;
    }

    .acc-header.search-open .acc-category-wrap {
        grid-row: 4;
    }

    .acc-header.search-open .acc-advanced {
        grid-row: 5;
    }

    .acc-newsbar {
        height: auto;
        min-height: 56px;
        padding: 7px 12px;
        text-align: center;
        justify-content: center;
    }

    .acc-news-track {
        animation: none;
        white-space: normal;
        line-height: 1.45;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .acc-header {
        max-width: 100%;
    }

    .acc-market-logo {
        font-size: 21px;
    }

    .acc-market-logo span {
        padding: 7px 12px;
    }
}