@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap");

/* ============================================================
   ATLAS THEME FOR GAMESTORE
   Вставлять в GameStore:
   «Внешний вид» → «Продвинутая конфигурация» → поле CSS.

   Работает с классами шаблона GameStore:
   Header-module__*, HeaderNav-module__*,
   PlayerMenu-module__*, PlayerMenuMobile-module__*,
   LangSwitcher-module__*, CrosseCloseBtn-module__*,
   Products-module__wrapper, Product-module__*,
   Categories-module__*, Search-module__*,
   ModalLayout-module__*, ProductModal-module__*
   ============================================================ */

:root {
    --atlas-black: #000;
    --atlas-red: #e60000;
    --atlas-red-hover: #cc0000;
    --atlas-text: #fff;
    --atlas-muted: #9ca3af;
    --atlas-line: rgba(31, 41, 55, .5);
    --atlas-purple: #9333ea;
    --atlas-purple-hover: #7e22ce;
    --atlas-green: #22c55e;
    --atlas-yellow: #eab308;

    --atlas-vip: #4ade80;
    --atlas-prime: #2196f3;
    --atlas-mythic: #9c27b0;
    --atlas-vanguard: #e60000;
    --atlas-champion: #ffd700;

    --atlas-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --atlas-display: "Rajdhani", "Inter", sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    background:
        radial-gradient(ellipse at 50% -15%, #20264b 0%, transparent 48%),
        var(--atlas-black) !important;
    color: var(--atlas-text) !important;
    font-family: var(--atlas-font) !important;
}

::selection {
    background: rgba(230, 0, 0, .45);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #090b12; }
::-webkit-scrollbar-thumb { background: #414b76; border-radius: 10px; }

/* Принудительно убираем верхний баннер GameStore */
.bannerContainer,
[class*="Banner-module"] {
    display: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */
/* Шапка должна быть во всю ширину экрана, а не внутри container */
[class*="headerContainer"] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

[class*="Header-module__wrapper"] {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 1.5rem !important;
    background: rgba(0, 0, 0, .9) !important;
    border-bottom: 1px solid var(--atlas-line) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: none !important;
}

[class*="Header-module__logoWrapper"] {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

[class*="Header-module__logo"] {
    display: inline-flex;
    align-items: center;
    font-family: var(--atlas-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    color: #fff !important;
    text-transform: uppercase;
}

[class*="Header-module__logo"] img,
[class*="Header-module__logo"] svg {
    height: 2rem;
    width: auto;
}

[class*="Header-module__logo"]:hover {
    color: #fff !important;
}

/* Nav */
[class*="Header-module__nav"] {
    display: flex !important;
    align-items: center !important;
    gap: 1.75rem !important;
    margin-left: 2.5rem !important;
}

[class*="HeaderNav-module__link"] {
    position: relative;
    color: var(--atlas-muted) !important;
    font-family: var(--atlas-font) !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: .25rem 0 !important;
    transition: color .15s ease !important;
}

[class*="HeaderNav-module__link"]:hover,
[class*="HeaderNav-module__link"][class*="active"] {
    color: #fff !important;
}

[class*="HeaderNav-module__link"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--atlas-red);
    transition: width .2s ease;
}

[class*="HeaderNav-module__link"]:hover::after {
    width: 100%;
}

/* Right side */
[class*="PlayerMenu-module__wrapper"] {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
    margin-left: auto !important;
}

[class*="PlayerMenu-module__loginLink"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .5rem 1rem !important;
    border-radius: .25rem !important;
    background: var(--atlas-red) !important;
    color: #000 !important;
    font-family: var(--atlas-font) !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color .2s ease !important;
}

[class*="PlayerMenu-module__loginLink"]:hover {
    background: var(--atlas-red-hover) !important;
    color: #000 !important;
    transform: none !important;
}

/* Language */
[class*="LangSwitcher-module__btn"] {
    display: inline-flex !important;
    align-items: center;
    gap: .375rem;
    padding: .5rem .75rem !important;
    background: rgba(0, 0, 0, .3) !important;
    border: 1px solid rgba(75, 85, 99, .4) !important;
    border-radius: .5rem !important;
    color: #fff !important;
    font-family: var(--atlas-font) !important;
    font-size: .8125rem !important;
    transition: background-color .15s ease !important;
}

[class*="LangSwitcher-module__btn"]:hover {
    background: rgba(255, 255, 255, .08) !important;
}

[class*="LangSwitcher-module__currentLang"] {
    font-weight: 700 !important;
    font-size: .75rem !important;
    letter-spacing: .04em;
}

[class*="LangSwitcher-module__list"] {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: .5rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6) !important;
    overflow: hidden !important;
}

[class*="LangSwitcher-module__lang"] {
    display: block;
    width: 100%;
    padding: .625rem 1rem !important;
    background: transparent !important;
    color: #eee !important;
    font-family: var(--atlas-font) !important;
    font-size: .875rem !important;
    text-align: left;
    transition: background-color .15s ease !important;
}

[class*="LangSwitcher-module__lang"]:hover {
    background: #222 !important;
    color: #fff !important;
}

/* Mobile menu */
[class*="PlayerMenuMobile-module__mobileMenuBtn"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: .5rem !important;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem !important;
    background: rgba(0, 0, 0, .3) !important;
    border: 1px solid rgba(75, 85, 99, .4) !important;
}

[class*="PlayerMenuMobile-module__line"] {
    background: #fff !important;
}

[class*="PlayerMenuMobile-module__menuWrapper"] {
    background: rgba(0, 0, 0, .75) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

[class*="PlayerMenuMobile-module__menu"] {
    background: #0d0d0d !important;
    border-left: 1px solid #222 !important;
}

[class*="PlayerMenuMobile-module__header"] {
    background: #111 !important;
    color: #fff !important;
    border-bottom: 1px solid #222 !important;
}

[class*="PlayerMenuMobile-module__body"] {
    background: #0d0d0d !important;
}

[class*="PlayerMenuMobile-module__loginLink"] {
    color: var(--atlas-red) !important;
}

[class*="CrosseCloseBtn-module__line"] {
    background: #fff !important;
}

/* ============================================================
   SHOP / SEARCH / CATEGORIES
   ============================================================ */
.Index-module__wrapper {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 3rem !important;
}

[class*="Shop-module__wrapper"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[class*="Shop-module__header"] {
    display: block !important;
    width: 100% !important;
    margin: 0 0 1.25rem !important;
    padding: 0 0 .75rem !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--atlas-line) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

[class*="Shop-module__wrapper"] > .boxBody {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Search */
[class*="Search-module__wrapper"] {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    width: 100% !important;
    max-width: 420px !important;
    height: 2.5rem !important;
    margin: 0 0 1rem !important;
    padding: 0 .875rem !important;
    background: #0d1320 !important;
    border: 1px solid #26304a !important;
    border-radius: .5rem !important;
    color: var(--atlas-muted) !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

[class*="Search-module__wrapper"]:focus-within {
    border-color: var(--atlas-purple) !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, .18) !important;
}

[class*="Search-module__iconWrapper"] {
    display: inline-flex;
    align-items: center;
    color: #6b7280 !important;
}

[class*="Search-module__icon"] {
    width: 1rem !important;
    height: 1rem !important;
}

[class*="Search-module__input"] {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-family: var(--atlas-font) !important;
    font-size: .875rem !important;
}

[class*="Search-module__input"]::placeholder {
    color: #6b7280 !important;
}

/* Categories */
[class*="Categories-module__categories"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: .5rem !important;
    width: 100% !important;
    margin: 0 0 1.25rem !important;
    padding: 0 0 1rem !important;
    overflow-x: auto !important;
    border-bottom: 1px solid var(--atlas-line) !important;
    scrollbar-width: thin;
    scrollbar-color: #414b76 transparent;
}

[class*="Categories-module__categories"]::-webkit-scrollbar {
    height: 5px;
}

[class*="Categories-module__categories"]::-webkit-scrollbar-thumb {
    background: #414b76;
    border-radius: 10px;
}

[class*="Categories-module__category"] {
    flex: 0 0 auto !important;
    padding: .5rem .875rem !important;
    background: #101623 !important;
    border: 1px solid #26304a !important;
    border-radius: .5rem !important;
    color: var(--atlas-muted) !important;
    font-family: var(--atlas-font) !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}

[class*="Categories-module__category"]:hover {
    background: #1a2336 !important;
    border-color: rgba(230, 0, 0, .55) !important;
    color: #fff !important;
}

[class*="Categories-module__category"][class*="Categories-module__active"] {
    background: linear-gradient(135deg, #f0260d, var(--atlas-red)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(230, 0, 0, .28) !important;
}

[class*="Categories-module__category"]:focus-visible {
    outline: 2px solid var(--atlas-purple);
    outline-offset: 2px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
[class*="Products-module__wrapper"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 1rem 0 2rem !important;
    align-items: stretch !important;
}

@media (min-width: 640px) {
    [class*="Products-module__wrapper"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    [class*="Products-module__wrapper"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    [class*="Products-module__wrapper"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    [class*="Products-module__wrapper"] {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
[class*="Product-module__wrapper"] {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 0 0 1rem !important;
    overflow: hidden !important;
    border: 1px solid var(--atlas-line) !important;
    border-radius: 1rem !important;
    background: linear-gradient(to bottom right, rgba(55, 65, 81, .75), rgba(17, 24, 39, .65), rgba(3, 7, 18, .45)) !important;
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, .1), 0 4px 6px -4px rgba(168, 85, 247, .1) !important;
    cursor: pointer;
    opacity: 1;
    transform: none;
    animation: atlasCardIn .3s ease-out backwards;
    transition: transform .15s ease !important, box-shadow .15s ease !important, border-color .15s ease !important;
}

[class*="Product-module__wrapper"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, .3) !important;
}

/* shimmer */
[class*="Product-module__wrapper"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .035) 50%, transparent 65%);
    opacity: 0;
    transition: opacity .3s ease;
}

[class*="Product-module__wrapper"]:hover::after {
    opacity: 1;
}

/* content above artwork */
[class*="Product-module__wrapper"] > *:not(.atlas-card-art) {
    position: relative;
    z-index: 2;
}

/* Декоративный арт Atlas больше не используется */
.atlas-card-art {
    display: none !important;
}

/* image */
[class*="Product-module__img"] {
    display: block !important;
    order: 1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #0b0f19 !important;
    border-radius: 1rem 1rem 0 0 !important;
    transition: transform .4s ease !important;
}

[class*="Product-module__wrapper"]:hover [class*="Product-module__img"] {
    transform: scale(1.04);
}

/* Прячем стандартную заглушку GameStore, чтобы был виден арт ранга */
[class*="Product-module__img"][src*="noimage"] {
    opacity: 0 !important;
}

/* name */
[class*="Product-module__name"] {
    order: 2;
    display: block !important;
    padding: 1rem 1rem .375rem !important;
    transform: none !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35));
}

/* price */
[class*="Product-module__price"] {
    order: 3;
    display: block !important;
    margin-top: auto !important;
    transform: none !important;
    padding: .75rem 1rem !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

[class*="Product-module__price"] > span {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* buy button */
.atlas-buy-btn {
    order: 4;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: auto !important;
    height: 2.5rem !important;
    margin: .25rem 1rem 0 !important;
    padding: .5rem 1rem !important;
    border: none !important;
    border-radius: .5rem !important;
    background: var(--atlas-purple) !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: .875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}

.atlas-buy-btn:hover {
    background: var(--atlas-purple-hover) !important;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .25) !important;
}

.atlas-buy-btn:active {
    transform: scale(.95);
}

/* Визуальная кнопка для карточек GameStore (клик проходит на карточку) */
.atlas-buy-btn-fake {
    pointer-events: none;
    user-select: none;
}

[class*="Product-module__wrapper"]:focus-visible {
    outline: 2px solid var(--atlas-purple);
    outline-offset: 3px;
}

/* ============================================================
   RANK VARIANTS
   ============================================================ */
[class*="Product-module__wrapper"].atlas-rank-vip {
    background: linear-gradient(to bottom right, rgba(22, 163, 74, .35), rgba(22, 163, 74, .15), rgba(3, 7, 18, .95)) !important;
    border-color: rgba(22, 163, 74, .4) !important;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, .15), 0 4px 6px -4px rgba(34, 197, 94, .15) !important;
}

[class*="Product-module__wrapper"].atlas-rank-vip:hover {
    box-shadow: 0 25px 50px -12px rgba(34, 197, 94, .4) !important;
}

[class*="Product-module__wrapper"].atlas-rank-prime,
[class*="Product-module__wrapper"].atlas-rank-mythic,
[class*="Product-module__wrapper"].atlas-rank-vanguard {
    background: linear-gradient(to bottom right, rgba(55, 65, 81, .75), rgba(17, 24, 39, .65), rgba(3, 7, 18, .45)) !important;
    border-color: rgba(31, 41, 55, .5) !important;
}

[class*="Product-module__wrapper"].atlas-rank-champion {
    background: linear-gradient(to bottom right, rgba(202, 138, 4, .35), rgba(202, 138, 4, .15), rgba(3, 7, 18, .95)) !important;
    border-color: rgba(202, 138, 4, .4) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, .2), 0 10px 15px -3px rgba(234, 179, 8, .15) !important;
    outline: 1px solid rgba(202, 138, 4, .3);
}

[class*="Product-module__wrapper"].atlas-rank-champion:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, .2), 0 25px 50px -12px rgba(234, 179, 8, .4) !important;
}

/* Accents: name + price */
.atlas-rank-vip [class*="Product-module__name"],
.atlas-rank-vip [class*="Product-module__price"] {
    color: var(--atlas-vip) !important;
}

.atlas-rank-champion [class*="Product-module__name"],
.atlas-rank-champion [class*="Product-module__price"] {
    color: var(--atlas-champion) !important;
}

/* Buttons per rank */
.atlas-rank-vip .atlas-buy-btn {
    background: var(--atlas-vip) !important;
    color: #fff !important;
}

.atlas-rank-vip .atlas-buy-btn:hover {
    background: rgba(74, 222, 128, .8) !important;
}

.atlas-rank-champion .atlas-buy-btn {
    background: linear-gradient(to right, #eab308, #ca8a04) !important;
    color: #000 !important;
}

.atlas-rank-champion .atlas-buy-btn:hover {
    background: linear-gradient(to right, #ca8a04, #a16207) !important;
}

/* POPULAR badge */
.atlas-rank-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 5;
    padding: .125rem .375rem;
    border: 1px solid var(--atlas-purple);
    border-radius: 9999px;
    background: linear-gradient(to right, #a855f7, #9333ea);
    color: #000;
    font-family: var(--atlas-display);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(147, 51, 234, .25);
}

/* ============================================================
   TRUST ROW (injected by JS)
   ============================================================ */
.atlas-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.25rem 0 1.5rem;
    font-family: var(--atlas-font);
    font-size: .875rem;
    text-align: center;
}

.atlas-trust-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
}

.atlas-trust-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    animation: atlasPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.atlas-trust-dot.green { background: #4ade80; }
.atlas-trust-dot.blue { background: #60a5fa; }
.atlas-trust-dot.purple { background: #c084fc; }
.atlas-trust-item.green { color: #86efac; }
.atlas-trust-item.blue { color: #93c5fd; }
.atlas-trust-item.purple { color: #d8b4fe; }

.atlas-trust-sep {
    width: 1px;
    height: 1rem;
    background: #9ca3af;
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
[class*="ModalLayout-module__wrapper"] {
    background: rgba(0, 0, 0, .78) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 200 !important;
}

[class*="ModalLayout-module__modal"] {
    width: min(440px, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    overflow: hidden !important;
    background: linear-gradient(160deg, #101623, #0a0d15) !important;
    border: 1px solid rgba(147, 51, 234, .35) !important;
    border-radius: 1rem !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7) !important;
}

[class*="ProductModal-module__header"] {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: linear-gradient(to right, rgba(147, 51, 234, .28), rgba(10, 13, 21, .95)) !important;
    border: none !important;
    border-bottom: 1px solid rgba(147, 51, 234, .25) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

[class*="ModalLayout-module__modal"] > .boxBody {
    width: 100% !important;
    padding: 1.25rem !important;
    background: #0b101a !important;
    border-radius: 0 !important;
    color: var(--atlas-muted) !important;
}

.productModalImg {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    padding: .75rem !important;
    object-fit: contain !important;
    background: linear-gradient(180deg, #1c253b, #141a29) !important;
    border-radius: .75rem !important;
}

.productModalImg[src*="noimage"] {
    opacity: 0 !important;
}

.productModalDescription {
    margin: 1rem 0 !important;
    color: #c7cbd1 !important;
    font-family: var(--atlas-font) !important;
    font-size: .875rem !important;
    line-height: 1.65 !important;
}

.productModalDescription p {
    margin: .25rem 0 !important;
}

[class*="ProductModal-module__form"] {
    margin-top: .75rem !important;
}

.productModalFormRow {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
}

.productModalFormRowItem {
    flex: 1 1 150px !important;
    min-width: 0 !important;
}

[class*="TotalSum-module__label"],
[class*="CountSelector-module__label"] {
    display: block !important;
    margin-bottom: .375rem !important;
    color: var(--atlas-muted) !important;
    font-family: var(--atlas-font) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
}

[class*="TotalSum-module__inputWrapper"],
[class*="CountSelector-module__inputWrapper"] {
    display: flex !important;
    align-items: center !important;
    height: 2.5rem !important;
    padding: 0 .75rem !important;
    background: #0d1320 !important;
    border: 1px solid #26304a !important;
    border-radius: .5rem !important;
    overflow: hidden !important;
}

[class*="TotalSum-module__currency"] {
    margin-right: .5rem !important;
    color: #6b7280 !important;
    font-family: var(--atlas-display) !important;
    font-size: .8125rem !important;
    font-weight: 700 !important;
}

[class*="TotalSum-module__input"],
[class*="CountSelector-module__input"] {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-align: left !important;
}

[class*="CountSelector-module__input"] {
    text-align: center !important;
}

[class*="CountSelector-module__changeCountBtn"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 2rem !important;
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: .375rem !important;
    color: #fff !important;
    transition: background-color .15s ease, color .15s ease !important;
}

[class*="CountSelector-module__changeCountBtn"]:hover {
    background: rgba(147, 51, 234, .25) !important;
    color: #fff !important;
}

[class*="CountSelector-module__icon"] {
    width: 1rem !important;
    height: 1rem !important;
}

.productModalGiveText {
    display: block !important;
    margin-top: .75rem !important;
    color: #6b7280 !important;
    font-family: var(--atlas-font) !important;
    font-size: .75rem !important;
    line-height: 1.5 !important;
}

[class*="ItemContent-module__footer"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .75rem !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: #0d1320 !important;
    border: none !important;
    border-top: 1px solid var(--atlas-line) !important;
    border-radius: 0 !important;
}

/* GameStore buttons */
[class*="Button-module__btn"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.5rem !important;
    padding: .5rem 1.25rem !important;
    border: none !important;
    border-radius: .5rem !important;
    color: #fff !important;
    font-family: var(--atlas-display) !important;
    font-size: .875rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

[class*="Button-module__btn"]:hover {
    transform: translateY(-1px);
}

[class*="Button-module__btn"]:active {
    transform: translateY(0) scale(.98);
}

[class*="Button-module__gray"] {
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

[class*="Button-module__gray"]:hover {
    background: #374151 !important;
}

[class*="Button-module__accent"] {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(124, 58, 237, .35) !important;
}

[class*="Button-module__accent"]:hover {
    background: linear-gradient(135deg, #c084fc, #9333ea) !important;
    box-shadow: 0 14px 30px rgba(124, 58, 237, .45) !important;
}

/* Акцент окна товара под ранг */
[class*="ModalLayout-module__modal"].atlas-rank-vip [class*="ProductModal-module__header"] {
    background: linear-gradient(to right, rgba(34, 197, 94, .28), rgba(10, 13, 21, .95)) !important;
    border-bottom-color: rgba(34, 197, 94, .3) !important;
    color: var(--atlas-vip) !important;
}

[class*="ModalLayout-module__modal"].atlas-rank-champion [class*="ProductModal-module__header"] {
    background: linear-gradient(to right, rgba(234, 179, 8, .28), rgba(10, 13, 21, .95)) !important;
    border-bottom-color: rgba(234, 179, 8, .3) !important;
    color: var(--atlas-champion) !important;
}

[class*="ModalLayout-module__modal"].atlas-rank-vip [class*="Button-module__accent"] {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
    color: #052e16 !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .35) !important;
}

[class*="ModalLayout-module__modal"].atlas-rank-champion [class*="Button-module__accent"] {
    background: linear-gradient(135deg, #fde047, #ca8a04) !important;
    color: #1c1400 !important;
    box-shadow: 0 10px 24px rgba(234, 179, 8, .35) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #000 !important;
    border-top: 1px solid #1a1a1a !important;
    color: var(--atlas-muted) !important;
}

footer a {
    color: #d1d5db !important;
    transition: color .15s ease !important;
}

footer a:hover {
    color: #f87171 !important;
}

[class*="ShopFooter-module__text"] {
    max-width: 1000px !important;
    margin: 1.5rem auto 0 !important;
    color: #6b7280 !important;
    font-family: var(--atlas-font) !important;
    font-size: .75rem !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

[class*="DesktopCopyright-module__wrapper"] {
    background: #000 !important;
    border-top: 1px solid #1a1a1a !important;
    color: #4b5563 !important;
    font-family: var(--atlas-font) !important;
    font-size: .75rem !important;
}

[class*="DesktopCopyright-module__link"] {
    color: #6b7280 !important;
    transition: color .15s ease !important;
}

[class*="DesktopCopyright-module__link"]:hover {
    color: #f87171 !important;
}

/* ============================================================
   FLOATING BACK TO TOP
   ============================================================ */
.atlas-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .75rem;
    background: linear-gradient(135deg, #7968ff, #397dff);
    color: #fff;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.atlas-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.atlas-top:hover {
    filter: brightness(1.1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes atlasCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atlasPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ============================================================
   RESPONSIVE HEADER
   ============================================================ */
@media (max-width: 1023px) {
    [class*="Header-module__nav"] {
        gap: 1.25rem !important;
        margin-left: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    [class*="Header-module__wrapper"] {
        min-height: 64px !important;
        padding: 0 1rem !important;
    }

    [class*="Header-module__logo"] {
        font-size: 1.25rem !important;
    }

    [class*="Header-module__nav"],
    [class*="PlayerMenu-module__langSwitcher"],
    [class*="PlayerMenu-module__loginLink"] {
        display: none !important;
    }

    [class*="PlayerMenu-module__wrapper"] {
        gap: .5rem !important;
    }

    [class*="Product-module__img"] {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .atlas-trust-row {
        gap: 1rem;
        font-size: .8125rem;
    }

    .atlas-trust-sep {
        display: none;
    }

    .Index-module__wrapper {
        padding: 1.25rem .875rem 2rem !important;
    }

    [class*="Shop-module__header"] {
        font-size: 1.625rem !important;
        margin-bottom: 1rem !important;
    }

    [class*="Search-module__wrapper"] {
        max-width: 100% !important;
    }

    [class*="Categories-module__categories"] {
        gap: .375rem !important;
        padding-bottom: .75rem !important;
    }

    [class*="Categories-module__category"] {
        padding: .4375rem .75rem !important;
        font-size: .75rem !important;
    }

    /* Не перекрывать cookie-баннер */
    .atlas-top {
        bottom: 5.5rem;
    }

    .productModalImg {
        height: 170px !important;
    }

    [class*="ModalLayout-module__modal"] > .boxBody {
        padding: 1rem !important;
    }

    [class*="ProductModal-module__header"] {
        padding: .875rem 1rem !important;
        font-size: 1.25rem !important;
    }

    [class*="ItemContent-module__footer"] {
        padding: .875rem 1rem !important;
    }

    [class*="ItemContent-module__footer"] [class*="Button-module__btn"] {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    [class*="Product-module__wrapper"] {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   FINAL TWEAKS: скрыть категории + плавные анимации
   ============================================================ */

/* Убираем категории товаров */
[class*="Categories-module__categories"] {
    display: none !important;
}

/* Убираем trust-строку и декоративный арт Atlas */
.atlas-trust-row,
.atlas-card-art {
    display: none !important;
}

/* Страховка: пока JS не добавил ранг, карточки всё равно зелёные */
[class*="Product-module__wrapper"]:not([data-atlas-rank]) {
    background: linear-gradient(to right bottom, rgba(22, 163, 74, .35), rgba(22, 163, 74, .15), rgba(3, 7, 18, .95)) !important;
    border-color: rgba(22, 163, 74, .4) !important;
}

[class*="Product-module__wrapper"]:not([data-atlas-rank]) [class*="Product-module__name"],
[class*="Product-module__wrapper"]:not([data-atlas-rank]) [class*="Product-module__price"] {
    color: var(--atlas-vip) !important;
}

/* Плавный ховер карточки */
[class*="Product-module__wrapper"] {
    transition:
        transform .35s cubic-bezier(.2, .8, .2, 1),
        box-shadow .35s ease,
        border-color .35s ease !important;
    will-change: transform;
}

[class*="Product-module__wrapper"]:hover {
    transform: translateY(-6px) scale(1.035) !important;
}

[class*="Product-module__wrapper"]:active {
    transform: translateY(-2px) scale(.995) !important;
}

[class*="Product-module__wrapper"] .atlas-card-art-img {
    transition:
        transform .55s cubic-bezier(.2, .8, .2, 1),
        opacity .35s ease !important;
}

[class*="Product-module__wrapper"]:hover .atlas-card-art-img {
    transform: rotate(-14deg) scale(1.06) !important;
    opacity: .5 !important;
}

[class*="Product-module__wrapper"]:hover .atlas-buy-btn {
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

/* Плавное открытие окна товара */
[class*="ModalLayout-module__wrapper"] {
    animation: atlasFadeIn .22s ease-out both !important;
}

[class*="ModalLayout-module__modal"] {
    animation: atlasModalIn .3s cubic-bezier(.2, .9, .25, 1) both !important;
    will-change: transform, opacity;
}

[class*="ProductModal-module__header"] {
    animation: atlasDropIn .32s .04s both !important;
}

[class*="ModalLayout-module__modal"] > .boxBody {
    animation: atlasRiseIn .34s .06s both !important;
}

[class*="ItemContent-module__footer"] {
    animation: atlasRiseIn .34s .1s both !important;
}

@keyframes atlasFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes atlasModalIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes atlasDropIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atlasRiseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SOCIALS (injected by JS)
   ============================================================ */
[class*="Shop-module__wrapper"] > .boxFooter {
    background: #0b0f19 !important;
    border: 1px solid var(--atlas-line) !important;
    border-radius: 1rem !important;
}

.atlas-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .25rem 1rem 1.25rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(107, 114, 128, .2);
    font-family: var(--atlas-font);
}

.atlas-socials-title {
    margin: 0;
    color: #fff;
    font-family: var(--atlas-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.atlas-socials-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem 1.5rem;
}

.atlas-social-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #d1d5db;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.atlas-social-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.atlas-social-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    background-color: #1f2937;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem auto;
    border-radius: .5rem;
    transition: background-color .2s ease;
}

.atlas-social-link:hover .atlas-social-icon {
    background-color: #374151;
}

.atlas-social-icon.discord {
    background-image: url("https://cdn.simpleicons.org/discord/ffffff");
}

.atlas-social-icon.telegram {
    background-image: url("https://cdn.simpleicons.org/telegram/ffffff");
}

.atlas-social-icon.tiktok {
    background-image: url("https://cdn.simpleicons.org/tiktok/ffffff");
}

@media (max-width: 640px) {
    .atlas-socials-grid {
        gap: .65rem 1rem;
    }

    .atlas-social-link {
        font-size: .85rem;
    }

    .atlas-social-icon {
        width: 1.75rem;
        height: 1.75rem;
        flex-basis: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [class*="Product-module__wrapper"],
    [class*="Product-module__wrapper"] .atlas-card-art-img,
    [class*="ModalLayout-module__wrapper"],
    [class*="ModalLayout-module__modal"],
    [class*="ProductModal-module__header"],
    [class*="ModalLayout-module__modal"] > .boxBody,
    [class*="ItemContent-module__footer"] {
        animation: none !important;
        transition: none !important;
    }
}