*,
a,
h1,
h2,
h3,
h4,
h5,
h6,
span,
button,
input,
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a, h2, span, button, input {
    font-weight: 500;
    color: #fff;
    user-select: none;
}

img {
    pointer-events: none;
    user-select: none;
}

/* Универсальная обертка для изображений с анимацией загрузки - как в маркете */
.img-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

/* Skeleton loader - показывается пока картинка грузится */
.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%
    );
    background-size: 300% 300%;
    animation: imageShimmer 3s infinite ease-in-out;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Скрываем skeleton когда картинка загружена */
.img-wrapper:has(img:not(.img-loading))::before {
    opacity: 0;
    pointer-events: none;
}

/* Картинка во время загрузки - полностью скрыта */
img.img-loading {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative;
    z-index: 2;
}

/* Когда картинка загружена, она становится видимой */
img:not(.img-loading) {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative;
    z-index: 2;
}

@keyframes imageShimmer {
    0% {
        background-position: -200% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    background-color: #151022;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    animation: fadeIn 0.2s ease-in-out forwards;
    transition: opacity 0.2s ease-in-out;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body.fade-out {
    opacity: 0;
}

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

body::-webkit-scrollbar {
    display: none; /* Скрывает полосу прокрутки в Chrome/Safari */
}

/* Header */

.header {
    width: 100%;
    max-width: 100vw;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    margin: 0 0 0 20px;
    width: 350px;
    display: flex;
    justify-content: left;
    align-items: center;
}

.logo a {
    display: flex;
    justify-content: left;
    align-items: center;
    cursor: pointer;
}

.logo img {
    cursor: pointer;
}

.main-logo {
    width: 60%;
}

.lig-logo {
    width: 10%;
    height: 8%;
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu a {
    text-decoration: none;
    color: #999;
    transition: 0.1s;
    background: transparent;
    text-shadow: none;
    padding: 15px 15px;
}

.menu a:hover {
    color: #fff;
    text-shadow: 0 0 8px #ffffff40;
    transform: scale(110%);
    background: transparent;
    transition: 0.1s;
}

.header-right {
    display: flex;
    justify-content: right;
    width: 350px;
}


.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 0 0;
}

.top-up-btn {
    background-color: #A759FF;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 130px;
    height: 40px;
    background: linear-gradient(125deg,#A759FF 0%, #dabbfd 20%, #A759FF 40%, #5F0AA7 100%);
    box-shadow: 0 0 20px 0 #9849ED80;
    background-size: 250% 100%;
    transition: 0.2s;
    background-position: 80% 50%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-up-btn:hover {
    background-position: 50% 60%;
    box-shadow: 0 0 20px 0 #a15ee9a9;
    transform: scale(102%);
    transition: 0.2s;
}

.auth-btn {
    background-color: #3EFD7B;
    color: #151022;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 160px;
    height: 40px;
    background: linear-gradient(125deg,#3EFD7B 0%, #c1f5d1 25%, #3EFD7B 40%, #04a136 100%);
    box-shadow: 0 0 20px 0 #48FD784D;
    background-size: 250% 100%;
    transition: 0.2s;
    background-position: 80% 50%;
    font-size: 16px;
    font-weight: 700;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.auth-btn:hover {
    background-position: 50% 60%;
    box-shadow: 0 0 20px 0 #48FD784D;
    transform: scale(102%);
    transition: 0.2s;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FFFFFF26;
    border: none;
    margin: 0 20px 0 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar:hover {
    transform: scale(1.05);
}

.support {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #FFFFFF26;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.support:hover {
    background-color: #FFFFFF3A;
}

.support-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #A759FF 0%, #5F0AA7 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(167, 89, 255, 0.5);
    z-index: 1;
}

.support-badge.hidden {
    display: none;
}

.admin-dock {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
}

.admin-dock__panel {
    width: 280px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(21, 16, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    position: static;
}

.admin-dock__section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-dock__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-dock__group-label {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.admin-dock__accounts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-account-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.admin-account-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.admin-account-item.is-active {
    background: rgba(167, 89, 255, 0.2);
}

.admin-account-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.admin-account-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-account-balance {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.admin-account-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-account-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.admin-account-switch {
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.admin-account-switch:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.admin-account-switch:active {
    transform: translateY(0);
}

.admin-account-add {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.admin-account-input {
    flex: 1;
    min-width: 0;
    border-radius: 6px;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.admin-account-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.admin-account-add-btn {
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(50, 242, 111, 0.2) 0%, #32F26F 100%);
    color: #05060C;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.admin-account-add-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.admin-account-add-btn:active {
    transform: translateY(0);
}

.admin-dock__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-dock__action-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.admin-dock__action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.admin-dock__action-btn--danger {
    color: #FF9B9B;
    background: rgba(255, 91, 91, 0.15);
}

.admin-dock__action-btn--danger:hover {
    background: rgba(255, 91, 91, 0.25);
}

.admin-dock__link {
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: #AEBBFF;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
}

.admin-dock__status {
    margin-top: 10px;
    font-size: 12px;
    min-height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.admin-dock__status.is-error {
    color: #FF9B9B;
}

.admin-dock__status.is-success {
    color: #9BFFC6;
}

.admin-dock.is-visible {
    display: flex;
}
.user-balance {
    font-size: 0.9em;
    color: #666;
    width: max-content;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

/* Скрываем элементы для неавторизованных на десктопе */
.user-balance:not(.login-in),
.user-balance.none-login-in {
    display: none !important;
}

.top-up-btn:not(.login-in),
.top-up-btn.none-login-in {
    display: none !important;
}

.avatar.user-avatar:not(.login-in),
.avatar.user-avatar.none-login-in {
    display: none !important;
}

.support:not(.login-in),
.support.none-login-in {
    display: none !important;
}

/* Показываем элементы для авторизованных на десктопе */
.user-balance.login-in {
    display: flex !important;
}

.top-up-btn.login-in {
    display: flex !important;
}

.avatar.user-avatar.login-in {
    display: block !important;
    cursor: pointer;
}

/* Кнопка техподдержки только на десктопе для авторизованных */
.support.login-in {
    display: flex !important;
}

/* Скрываем кнопку техподдержки на мобильной версии */
@media (max-width: 768px) {
    .support.login-in {
        display: none !important;
    }
}

.gradient-ico {
    display: flex;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    background: linear-gradient(125deg,#CA96FF 0%, #A759FF 100%);
    align-items: center;
}

.ico-balance {
    display: flex;
    justify-content: center;
    width: 23px;
    height: 23px;
    background-color: #A759FF;
    border-radius: 100%;
    align-items: center;
}

.ico-balance img {
    height: 18px;
    width: 15px;
}

.user-balance h2 {
    font-size: 16px;
    font-weight: 700;
    color: #A759FF;
}

/* Main */

.main_container {
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    flex: 1;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1350px;
    width: 100%;
    margin-top: 50px;
    margin: 40px 20px 0 20px;
    gap: 30px;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

.news-row {
    gap: 30px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.news-carousel-wrapper {
    height: 320px;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    box-sizing: border-box;
}

/* Адаптивные размеры для карусели новостей */
@media (max-width: 768px) {
    .news-carousel-wrapper {
        max-width: 100%;
    }
}

.news-carousel-wrapper:active {
    cursor: grabbing;
}

.news-carousel {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.news-carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.news-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-carousel-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

/* Адаптивные размеры для контента слайда */
@media (max-width: 768px) {
    .news-carousel-slide-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .news-carousel-slide-content {
        padding: 12px;
    }
}

.news-carousel-slide-title {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px 0;
    white-space: pre-line;
    line-height: 1.1;
}

/* Адаптивные размеры для заголовка */
@media (max-width: 768px) {
    .news-carousel-slide-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .news-carousel-slide-title {
        font-size: 20px;
    }
}

.news-carousel-slide-text {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    margin: 0 0 16px 0;
    line-height: 1.3;
    max-width: 80%;
    white-space: pre-line;
}

/* Адаптивные размеры для текста */
@media (max-width: 768px) {
    .news-carousel-slide-text {
        font-size: 13px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .news-carousel-slide-text {
        font-size: 11px;
        max-width: 95%;
    }
}

.news-carousel-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.news-carousel-slide-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.news-carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.news-carousel-indicator.active {
    background-color: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

.news-carousel-nav {
    position: absolute;
    bottom: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.news-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-carousel-nav:active {
    transform: scale(0.95);
}

.news-carousel-nav--prev {
    right: 50px;
}

.news-carousel-nav--next {
    right: 15px;
}

.news-carousel-nav svg {
    width: 12px;
    height: 12px;
}

.gift {
    height: 320px;
    width: 100%;
    max-width: 320px;
    background: linear-gradient(125deg,#21723A 0%, #22054F 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gift-img {
    position: absolute;
    top: 10px;
    right: 0;
    height: 320px;
    width: 320px;
    background-image: url("/api/images/gift.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
}

.gift-info {
    padding: 15px 20px;
}

.gift-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gift-info h2 {
    font-size: 20px;
    font-weight: 700;
}

.gift-info h2 .gift-text-mobile {
    display: none;
}

.gift-info h2 .gift-text-desktop {
    display: inline;
}

.gift-telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.gift-telegram-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gift-telegram-link svg {
    transition: transform 0.3s ease;
}

.gift-telegram-link:hover svg {
    transform: translateX(2px);
}

.live-purchases {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    overflow-x: hidden;
}

.live-purchases__header {
    display: flex;
    gap: 2px;
    align-items: center;
}

.live-purchases__icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-purchases__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.live-purchases__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-purchases__title h2 {
    font-weight: 700;
    font-size: 22px;
}

.live-purchases__list {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding-bottom: 5px;
    position: relative;
}

.live-purchases__list::-webkit-scrollbar {
    display: none;
}

.live-purchases__item {
    height: 45px;
    background: radial-gradient(circle at right bottom, #401766 0%, #211146 100%);
    border-radius: 16px;
    padding: 9px 0px;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
    overflow: hidden;
    /* Начальное состояние для новых элементов (будет переопределено через inline стили) */
    min-width: 0px;
    opacity: 1;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.is-visible {
    opacity: 1;
    min-width: 222px;
    padding: 9px 18px;
    margin-right: 15px;
    justify-content: space-between;
    transition: 0.2s;
}

.live-purchases__item-info {
    display: none;
    opacity: 0;
    flex-direction: column;
    gap: 4px;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.is-visible .live-purchases__item-info {
    display: flex;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.vis-all .live-purchases__item-info {
    opacity: 1;
    transition: 0.2s;
}

.live-purchases__item-info h3 {
    display: none;
    opacity: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.is-visible .live-purchases__item-info h3 {
    display: flex;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.vis-all .live-purchases__item-info h3 {
    opacity: 1;
    transition: 0.2s;
}

.live-purchases__item-info span {
    font-size: 13px;
    font-weight: 500;
    color: #b0b0b0;
}

.live-purchases__item-icon {
    width: 54px;
    height: 54px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: 0.2s;
}

.live-purchases__item.is-visible .live-purchases__item-icon {
    display: flex;
    transition: 0.2s display 0.4s;
}

.live-purchases__item.vis-all .live-purchases__item-icon {
    opacity: 1;
    transition: 0.2s;
}

.live-purchases__item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.categories-row {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    perspective: 1000px;
}

.category-card {
    position: relative;
    flex: 1;
    min-height: 300px;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: visible;
    background: linear-gradient(to top right, #3F067C 0%, #290544 100%);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
}

/* Делаем дочерние элементы неблокирующими для кликов, чтобы клик проходил к карточке */
.category-card > * {
    pointer-events: none;
}

/* Восстанавливаем pointer-events для интерактивных элементов (если они есть) */
.category-card a,
.category-card button {
    pointer-events: auto;
}

/* Контейнер для неоновой картинки - ограничивает её границами карточки */
.category-card__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

.category-card--coinflip {
    background: linear-gradient(to top right, #3F067C 0%, #290544 100%);
}

.category-card--boxbattle {
    background: linear-gradient(to top right, #3F067C 0%, #290544 100%);
}

.category-card--shop {
    background: linear-gradient(to top right, #3F067C 0%, #290544 100%);
}

.category-card__image {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Неоновые картинки не имеют transition - они закреплены без анимации */
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card--coinflip .category-card__image-container .category-card__image,
.category-card--coinflip .category-card__image {
    left: calc(55% + 5px);
    top: calc(45% + 20px);
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%) rotate(-3deg) translateZ(0);
}

.category-card--boxbattle .category-card__image-container .category-card__image,
.category-card--boxbattle .category-card__image {
    width: 490px;
    height: 490px;
    top: calc(45% - 20px);
    left: calc(55% + 10px);
    transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
}

.category-card--shop .category-card__image-container .category-card__image,
.category-card--shop .category-card__image {
    width: 470px;
    height: 470px;
    top: calc(45%);
    left: calc(55% + 10px);
    transform: translate(-50%, -50%) rotate(5deg) translateZ(0);
}

/* Дубликат картинки для основной картинки (без неона) */
.category-card__image2 {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.3s ease-out;
}

.category-card__image2-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card--coinflip .category-card__image2 {
    left: calc(55% + 5px);
    top: calc(45% + 20px);
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%) rotate(-3deg) translateZ(0);
    transition: transform 0.3s ease-out;
}

.category-card--boxbattle .category-card__image2 {
    width: 490px;
    height: 490px;
    top: calc(45% - 20px);
    left: calc(55% + 10px);
    transform: translate(-50%, -50%) rotate(0deg) translateZ(0);
    transition: transform 0.3s ease-out;
}

.category-card--shop .category-card__image2 {
    width: 470px;
    height: 470px;
    top: calc(45%);
    left: calc(55% + 10px);
    transform: translate(-50%, -50%) rotate(5deg) translateZ(0);
    transition: transform 0.3s ease-out;
}

.category-card--inventory .category-card__image-container .category-card__image,
.category-card--inventory .category-card__image {
    left: calc(55% + 15px);
}

.category-card--inventory .category-card__image2 {
    left: calc(55% + 15px);
}

/* Внутренний элемент */
.category-card__image2-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card__online {
    position: absolute;
    bottom: 60px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.category-card__online img {
    width: 14px;
    height: 14px;
}

.category-card__online span {
    font-size: 12px;
    font-weight: 500;
    color: #3EFD7B;
}

.category-card__content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-right: 0;
    position: relative;
    z-index: 4;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.category-card:hover .category-card__content {
    transform: translateZ(18px);
}

.category-card:hover .category-card__online {
    transform: translateZ(14px);
}

/* Неоновые картинки не имеют hover эффекта - они закреплены на месте */

/* Переход по Z для родительского элемента - плавный и отдельный */
.category-card:hover .category-card__image2 {
    transform: translate(-50%, -50%) translateZ(20px);
}

.category-card--coinflip:hover .category-card__image2,
.category-card:hover.category-card--coinflip .category-card__image2 {
    transform: translate(-50%, -50%) rotate(-3deg) translateZ(20px);
}

.category-card--boxbattle:hover .category-card__image2,
.category-card:hover.category-card--boxbattle .category-card__image2 {
    transform: translate(-50%, -50%) rotate(0deg) translateZ(20px);
}

.category-card--shop:hover .category-card__image2,
.category-card:hover.category-card--shop .category-card__image2 {
    transform: translate(-50%, -50%) rotate(5deg) translateZ(20px);
}


.category-card__content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.category-card__cta {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 1;
}

.category-card__cta img {
    width: 18px;
}

.category-card__cta:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Блокировка карточек */
.category-card--blocked {
    position: relative;
    cursor: not-allowed;
}

.category-card__badge {
    position: absolute;
    top: -8px;
    left: 20px;
    z-index: 12;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.category-card__badge::before {
    content: 'soon';
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.category-card__badge::after {
    content: '';
    position: absolute;
    right: -7.9px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0px 0px 8px;
    border-color: transparent transparent transparent #D94A5A;
    z-index: 0;
}

.category-card:hover .category-card__cta {
    transform: translateX(20px);
}

#mm2 {
    background: url("/api/images/mm2-background.jpg");
    background-size: 150%;
    background-position: center;
    transition: 0.2s;
}

#adoptme {
    background: url("/api/images/adoptme-background.jpg");
    background-size: 155%;
    background-position: center;
    transition: 0.2s;
}

#ttd {
    background: url("/api/images/ttd-background.jpg");
    background-size: 155%;
    background-position: right;
    transition: 0.2s;
}

#gag {
    background: url("/api/images/gag-background.jpg");
    background-size: 125%;
    background-position: right;
    transition: 0.2s;
}

#ps99 {
    background: url("/api/images/ps99-background.jpg");
    background-size: 145%;
    background-position: right;
    transition: 0.2s;
}

#adoptme .cat-logo {
    width: 270px;
}

#ttd .cat-logo {
    width: 250px;
}

#gag .cat-logo {
    width: 200px;
}

#ps99 .cat-logo {
    width: 200px;
}

.line-row {
    display: flex;
    justify-content: center;
}

.line {
    height: 1px;
    width: 75%;
    background: linear-gradient(90deg,rgb(255, 255, 255, 0) 0%,rgb(255, 255, 255, 0.5) 50%, rgb(255, 255, 255, 0) 100%);
    border-radius: 100px;
}

.temno {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 30px 20px 30px;
    transform-style: preserve-3d;
    gap: 5px;
}

.sellinfo {
    display: flex;
    position: relative;
    align-items: center;
    transition: 0.2s;
}

.sellinfo h2 {
    margin: 0 0 0 5px;
    color: #20C75B;
    font-weight: 700;
    font-size: 16px;
}

.sellinfo img {
    position: relative;
    width: 25px;
}

.card-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: 0.2s;
}

.card-category h2 {
    font-weight: 700;
}

.ctgr-button {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background-color: rgba(256, 256, 256, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctgr-button img {
    width: 80%;
}

.сard:hover .sellinfo {
    transform: translateZ(40px);
    transition: 0.2s;
}

.сard:hover .card-category {
    transform: translateZ(50px);
    transition: 0.2s;
}

/* Footer */

#footer-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.footer-row {
    gap: 50px;
    flex-direction: row;
    font-family:'Montserrat';
    font-weight: 500;
    font-size: 10px;
    margin: 20px 0 50px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: start;
}

.footer-logo-img {
    height: auto;
    width: 200px;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-left h2 {
    font-size: 12px;
    color: rgba(256, 256, 256, 0.2);
}

.ogran {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.ogran h2 {
    font-size: 14px;
    font-weight: 700;
    color: #32FF7B;
}

.ogran-icon-border {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: solid 3px #21723A;
    background-color: #21723A;
}

.ogran-icon {
    width: 35px;
    height: 35px;
    display: flex;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    background-color: #32FF7B;
    font-size: 16px;
    margin-top: 0.3px;
    font-family:'Montserrat';
    font-weight: 700;
    color: #0F0E1A;
}

.footer-middle {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-top {
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-top h2 {
    color: rgba(256, 256, 256, 0.2);
}

.footer-top-time {
    font-size: 14px;
    width: max-content;
    font-weight: 700;
}

.footer-top-text {
    font-size: 10px;
    width: max-content;
    font-weight: 500;
}

.footer-top-text.footer-placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-menu {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100%;
}

.footer-menu-left {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.footer-menu-left a {
    color: rgba(256, 256, 256, 0.2);
    text-decoration: none;
    font-size: 12px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: end;
}

.social {
    display: flex;
    justify-content: right;
}

.social-right {
    height: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social img {
    width: 35px;
    height: 35px;
}

.lang {
    border-radius: 10px;
    width: 140px;
    height: 40px;
    background-color: #22212E;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.language-selector {
    position: relative;
    width: 100%;
    height: 100%;
}

.lang-btn-selected {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
}

.lang-btn-selected:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn-selected .lang-arrow {
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.lang-btn-selected.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    margin-bottom: 8px;
    background-color: #22212E;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.lang-option:first-child {
    border-radius: 10px 10px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 10px 10px;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-option.active {
    background: linear-gradient(125deg, #A759FF 0%, #dabbfd 20%, #A759FF 40%, #32055B 100%);
    background-size: 250% 100%;
    background-position: 50% 60%;
    color: #fff;
}

.lang-option .lang-code {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.8;
    margin-left: 8px;
}

.lang-btn-selected span,
.lang-option span {
    pointer-events: none;
    user-select: none;
}

/* Admin Panel */

.admin-panel {
    bottom: 0px;
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #22212E;
    border-radius: 0 10px 0 0;
    border-right: 2px rgb(256, 256, 256, 0.1) solid;
    border-top: 2px rgb(256, 256, 256, 0.1) solid;
}

.ap-container {
    width: 100%;
    height: 100%;
}

/* For All */

#row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.selected-game {
    font-size: 15px;
    color: rgb(256, 256, 256, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

input {
    border: 0;
    outline: none;
}

/* Новая структура фильтров */
.market-filters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
}

/* Блоки фильтров - все одинакового размера */
/* Стили для filter-block применяются только в магазине */
.market-filters-row .filter-block {
    border-radius: 10px;
    background-color: #302D3E;
    display: flex;
    align-items: center;
    min-width: 180px;
    max-width: 100%;
    height: 42px;
    box-sizing: border-box;
    overflow: visible;
    flex: 1 1 auto;
}

/* Блок поиска */
.filter-block-search {
    flex: 1 1 auto;
    min-width: 180px;
}

.market-search {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

.mafi-search {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgb(256,256,256,1);
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 14px;
    min-width: 0;
}

.mafi-search::placeholder {
    color: rgb(256,256,256,0.5);
}

.market-search img {
    width: 28px;
    height: 28px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Блоки дропдаунов */
.filter-block-game,
.filter-block-sort,
.filter-block-price {
    flex: 1 1 auto;
    min-width: 180px;
}

.market-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 1;
}

.t-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: pointer;  
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1;
    height: 100%;
}

.dropdown-top {
    width: 100%;
    min-width: 0;
    height: 32px;
    background-color: #302D3E;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 10;
    position: relative;
    padding: 5px 10px;
    transition: 0.2s;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
}

.dropdown-ico {
    width: 20px;
}

.dt-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}


.dropdown-arr {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: 0.2s;
    flex-shrink: 0;
}

.dropdown-main {
    position: absolute;
    width: 100%;
    background-color: #151022;
    border: 2px solid #302D3E;
    z-index: 9;
    top: 80%;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 20px 10px 10px 10px;
    border-radius: 0 0 10px 10px;
    /* Плавная анимация открытия/закрытия */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    max-height: 0;
    overflow: hidden;
    display: flex;
    pointer-events: none;
    box-sizing: border-box;
}

.t-dropdown.open .dropdown-main {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    max-height: 500px;
    pointer-events: auto;
    z-index: 1;
}

/* Увеличиваем z-index для открытого дропдауна, чтобы он перекрывал другие */
.t-dropdown.open {
    position: relative;
    z-index: 1004;
}

.t-dropdown.open .dropdown-top {
    z-index: 1005;
    position: relative;
}

.filter-block.dropdown.open {
    position: relative;
    z-index: 1004;
}

.filter-block.dropdown.open .dropdown-top {
    z-index: 1005;
    position: relative;
}

.filter-block.dropdown.open .dropdown-main {
    z-index: 1;
}

.t-dropdown.open .dropdown-arr {
    transform: rotate(180deg);
}

.dropdown-opt {
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    padding: 5px 7px;
    border-radius: 5px;
    gap: 10px;
    opacity: 1;
}

/* Анимация появления опций только при открытии dropdown */
.t-dropdown.open .dropdown-opt {
    opacity: 0;
    transform: translateX(-5px);
    animation: fadeInOption 0.3s ease forwards;
}

@keyframes fadeInOption {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Задержка анимации для каждой опции */
.t-dropdown.open .dropdown-opt:nth-child(1) {
    animation-delay: 0.05s;
}

.t-dropdown.open .dropdown-opt:nth-child(2) {
    animation-delay: 0.1s;
}

.t-dropdown.open .dropdown-opt:nth-child(3) {
    animation-delay: 0.15s;
}

.t-dropdown.open .dropdown-opt:nth-child(4) {
    animation-delay: 0.2s;
}

.t-dropdown.open .dropdown-opt:nth-child(5) {
    animation-delay: 0.25s;
}

.t-dropdown.open .dropdown-opt:nth-child(6) {
    animation-delay: 0.3s;
}

.t-dropdown.open .dropdown-opt:nth-child(7) {
    animation-delay: 0.35s;
}

.t-dropdown.open .dropdown-opt:nth-child(8) {
    animation-delay: 0.4s;
}

.do-main {
    width: 16px;
    min-width: 16px;
    height: 16px;
    border-radius: 100%;
    border: 2px solid #A759FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.in-do-main {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: #A759FF;
    opacity: 0;
}

.dropdown-opt.selected .in-do-main {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dropdown-opt.selected {
    background-color: rgb(256, 256, 256, 0.1);
    transition: background-color 0.3s ease;
}

/* Fade эффект при выборе опции */
.dropdown-opt:hover {
    background-color: rgb(256, 256, 256, 0.05);
    transition: background-color 0.2s ease;
}

/* Плавное изменение выбранного текста в dropdown-top */
.dropdown-top h2 {
    transition: opacity 0.3s ease;
}

.dropdown-top h2.fade-out {
    opacity: 0;
}

.dropdown-top h2.fade-in {
    opacity: 1;
}

.do-name {
    font-size: 16px;
}

.dropdown-prices {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
}

.dp-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dp-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpl-name {
    color: rgb(256, 256, 256, 0.5);
    font-size: 16px;
    font-weight: 300;
}

.dpl-ot {
    height: 30px;
    width: calc(100% - 30px);
    background-color: #302D3E;
    border-radius: 10px;
    padding: 5px 15px;
    font-size: 18px;
}

.popup-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10002;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 0.4);
    opacity: 0;
    transition: 0.2s;
}

.popup-container.fade,
.popup-container.popup-visible {
    opacity: 1;
    transition: 0.2s;
}

.login-in, .none-login-in {
    display: none;
}

/* ===== Notifications ===== */
.notifications-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    z-index: 99999;
    pointer-events: none;
}

.notification-card {
    --notification-accent: rgba(255, 255, 255, 0.35);
    width: auto;
    min-width: 260px;
    max-width: min(440px, calc(100vw - 32px));
    background-color: rgba(21, 16, 34, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 18px 16px 52px;
    color: #fff;
    box-shadow: 0 14px 25px rgba(10, 7, 15, 0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    overflow: hidden;
}

.notification-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-card.is-hiding {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

.notification-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.notification-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-weight: 500;
}
.notification-message.secondary {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: normal;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.notification-message.secondary > span {
    display: block;
}
.notification-meta-primary {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
}
.notification-meta-secondary {
    color: rgba(255, 255, 255, 0.85);
}
.notification-meta-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}
.notification-message .notification-amount-strong {
    font-weight: 700;
    color: #fff;
}

.notification-amount-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 6px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    margin: 0 1px;
}

.notification-amount-inline img {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.notification-amount {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.notification-amount .amount-icon {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-amount .amount-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.notification-amount .amount-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.notification-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.notification-action-btn {
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.notification-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.notification-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.notification-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.notification-card.notification-success {
    border-color: rgba(45, 208, 123, 0.4);
    --notification-accent: #2dd07b;
}
.notification-card.notification-success .notification-icon {
    background: rgba(45, 208, 123, 0.15);
    color: #2dd07b;
}
.notification-card.notification-success .notification-action-btn {
    background: linear-gradient(125deg,#3EFD7B 0%, #04a136 100%);
}

.notification-card.notification-warning {
    border-color: rgba(245, 197, 66, 0.4);
    --notification-accent: #f5c542;
}
.notification-card.notification-warning .notification-icon {
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
}
.notification-card.notification-warning .notification-action-btn {
    background: linear-gradient(125deg,#f5c542 0%, #cf8a07 100%);
}

.notification-card.notification-error {
    border-color: rgba(255, 89, 100, 0.4);
    --notification-accent: #ff5964;
}
.notification-card.notification-error .notification-icon {
    background: rgba(255, 89, 100, 0.15);
    color: #ff5964;
}
.notification-card.notification-error .notification-action-btn {
    background: linear-gradient(125deg,#ff7878 0%, #ff2d55 100%);
}

.notification-card.notification-info {
    border-color: rgba(74, 179, 255, 0.4);
    --notification-accent: #4ab3ff;
}
.notification-card.notification-info .notification-icon {
    background: rgba(74, 179, 255, 0.15);
    color: #4ab3ff;
}
.notification-card.notification-info .notification-action-btn {
    background: linear-gradient(125deg,#4ab3ff 0%, #2355ff 100%);
}

.notification-group-enter {
    max-height: 0;
}

.notification-card[data-auto-hide="false"] .notification-action-btn {
    margin-left: 8px;
}

.notification-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--notification-accent, rgba(255, 255, 255, 0.35));
    opacity: 0.8;
    transform-origin: left center;
        transform: scaleX(1);
    will-change: transform;
}

/* Support Chat Popup */
.support-chat-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 40px);
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(20, 10, 35, 0.98) 100%);
    border: 1px solid rgba(167, 89, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 8px rgba(167, 89, 255, 0.15);
    z-index: 10000;
    overflow: hidden;
}

.support-chat-popup-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(167, 89, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(25, 15, 40, 0.9);
    flex-shrink: 0;
    position: relative;
    min-height: 48px;
}

.support-chat-popup-back {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(167, 89, 255, 0.8);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.support-chat-popup-back:hover {
    background: rgba(167, 89, 255, 0.2);
    color: #A759FF;
}

.support-chat-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.support-chat-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(167, 89, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.support-chat-popup-close:hover {
    background: rgba(167, 89, 255, 0.2);
    color: #A759FF;
}

.support-chat-popup-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

/* Минималистичный скроллбар для чата */
.support-chat-popup-messages::-webkit-scrollbar {
    width: 6px;
}

.support-chat-popup-messages::-webkit-scrollbar-track {
    background: transparent;
}

.support-chat-popup-messages::-webkit-scrollbar-thumb {
    background: rgba(167, 89, 255, 0.3);
    border-radius: 3px;
}

.support-chat-popup-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 89, 255, 0.5);
}

/* Для Firefox */
.support-chat-popup-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 89, 255, 0.3) transparent;
}

.support-chat-empty {
    margin: auto;
    text-align: center;
    color: rgba(148, 163, 184, 0.7);
    font-size: 14px;
    padding: 20px;
}

.support-chat-message-item {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
    min-width: 0;
}

/* Для больших сообщений - время и статус под текстом */
.support-chat-message-item.message-large {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-chat-message-item-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(167, 89, 255, 0.6) 0%, rgba(152, 73, 237, 0.7) 100%);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.support-chat-message-item-staff {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(167, 89, 255, 0.5) 0%, rgba(95, 10, 167, 0.6) 100%);
    border-bottom-left-radius: 4px;
    color: #fff;
}

.support-chat-message-wrapper-staff {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
}

/* Убираем анимацию с сообщения, если оно внутри обертки */
.support-chat-message-wrapper-staff > .support-chat-message-item {
    opacity: 1;
    transform: none;
    animation: none;
}

.support-chat-message-staff-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}

.support-chat-message-item-system {
    align-self: center;
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    text-align: center;
    margin: 4px 0;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
}

.support-chat-message-item-date {
    align-self: center;
    color: rgba(148, 163, 184, 0.7);
    font-size: 11px;
    padding: 6px 10px;
    text-align: center;
    margin: 12px 0 8px 0;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
    font-weight: 500;
}

.support-chat-rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.support-chat-rating-btn {
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.support-chat-rating-btn:hover:not(:disabled) {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.1);
}

.support-chat-rating-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.support-chat-rating-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.support-chat-rating-success {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
}

/* Rating Modal поверх всего чата */
.support-rating-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.support-rating-modal-content {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 32px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: none;
}

.support-rating-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.support-rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.support-rating-star {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-rating-star svg {
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

.support-rating-star:hover,
.support-rating-star.hovered {
    color: #a759ff;
    transform: scale(1.1);
}

.support-rating-star.active {
    color: #a759ff;
    filter: drop-shadow(0 0 8px rgba(167, 89, 255, 0.5));
}

.support-rating-modal-message {
    min-height: 20px;
    font-size: 13px;
    color: #10b981;
    margin-top: 12px;
}

.support-rating-skip {
    margin-top: 20px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-rating-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.support-rating-skip:active {
    transform: scale(0.98);
}

.support-chat-message-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
    /* Анимация применяется к родительскому элементу .support-chat-message-item */
}

/* Для больших сообщений контент занимает всю ширину */
.support-chat-message-item.message-large .support-chat-message-content {
    width: 100%;
}

.support-chat-message-content > div {
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    min-width: 0;
}

.support-chat-message-meta {
    font-size: 9px;
    color: rgba(148, 163, 184, 0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    align-self: flex-end;
}

/* Для больших сообщений - время и статус под текстом */
.support-chat-message-item.message-large .support-chat-message-meta {
    margin-top: 2px;
    align-self: flex-end;
}

.support-chat-message-status {
    width: 14px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-chat-message-status svg {
    width: 100%;
    height: 100%;
}

.support-chat-message-status-read {
    color: #ffffff;
}

.support-chat-message-status-unread {
    color: rgba(148, 163, 184, 0.6);
}

.support-chat-popup-input-wrapper {
    padding: 0;
    border-top: 1px solid rgba(167, 89, 255, 0.15);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    flex-shrink: 0;
}

.support-chat-attach-btn {
    background: transparent;
    border: none;
    color: rgba(167, 89, 255, 0.8);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    align-self: flex-end;
}

.support-chat-attach-btn:hover {
    color: #A759FF;
}

.support-chat-attach-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.support-chat-popup-input {
    flex: 1;
    resize: none;
    height: auto;
    min-height: 4px;
    max-height: 160px;
    padding: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    overflow-y: auto;
    outline: none;
}

/* Минималистичный скроллбар для поля ввода */
.support-chat-popup-input::-webkit-scrollbar {
    width: 6px;
}

.support-chat-popup-input::-webkit-scrollbar-track {
    background: transparent;
}

.support-chat-popup-input::-webkit-scrollbar-thumb {
    background: rgba(167, 89, 255, 0.3);
    border-radius: 3px;
}

.support-chat-popup-input::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 89, 255, 0.5);
}

/* Для Firefox */
.support-chat-popup-input {
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 89, 255, 0.3) transparent;
}

.support-chat-popup-input::placeholder {
    color: rgba(167, 89, 255, 0.5);
}

.support-chat-popup-input:focus {
    outline: none;
}

.support-chat-popup-send {
    background: transparent;
    border: none;
    color: rgba(167, 89, 255, 0.8);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.support-chat-popup-send:hover:not(:disabled) {
    color: #A759FF;
}

.support-chat-popup-send:hover:not(:disabled) svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.support-chat-popup-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.support-chat-popup-message {
    padding: 8px 16px;
    font-size: 12px;
    color: rgba(239, 68, 68, 0.9);
    text-align: center;
    min-height: 20px;
    flex-shrink: 0;
}

/* ==================== Превью медиа в поддержке ==================== */
.support-chat-media-preview {
    padding: 8px 12px;
    background: rgba(167, 89, 255, 0.08);
    border-top: 1px solid rgba(167, 89, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.support-chat-media-preview-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.support-chat-media-preview-content img,
.support-chat-media-preview-content video {
    max-height: 80px;
    max-width: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.support-chat-media-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.support-chat-media-preview-name {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-chat-media-preview-size {
    font-size: 11px;
    color: rgba(167, 89, 255, 0.7);
}

.support-chat-media-preview-remove {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.support-chat-media-preview-remove:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

/* ==================== Медиа в сообщениях чата поддержки ==================== */
.support-chat-message-media {
    max-width: 100%;
    margin-bottom: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.support-chat-message-media img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.support-chat-message-media img:hover {
    opacity: 0.9;
}

.support-chat-message-media video {
    max-width: 100%;
    max-height: 300px;
    display: block;
    border-radius: 8px;
}

.support-chat-message-media-sticker {
    max-width: 100px;
    max-height: 100px;
}

.support-chat-message-media-sticker img,
.support-chat-message-media-sticker video {
    max-width: 100px;
    max-height: 100px;
    background: transparent;
    object-fit: contain;
}

/* Убираем фон у сообщения со стикером */
.support-chat-message-item-sticker {
    background: transparent !important;
}

.support-chat-message-content-sticker {
    background: transparent !important;
    padding: 0 !important;
}

/* Обводим время и статус для стикеров */
.support-chat-message-meta-sticker {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Лайтбокс для полноразмерного просмотра */
.support-chat-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.support-chat-lightbox img,
.support-chat-lightbox video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.support-chat-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.support-chat-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Индикатор загрузки медиа */
.support-chat-media-uploading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(167, 89, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 4px;
}

.support-chat-media-uploading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(167, 89, 255, 0.3);
    border-top-color: #A759FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.support-chat-media-uploading-text {
    font-size: 12px;
    color: rgba(167, 89, 255, 0.8);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .support-chat-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        background: linear-gradient(135deg, rgba(30, 20, 50, 1) 0%, rgba(20, 10, 35, 1) 100%);
        box-shadow: none;
        z-index: 10000;
    }
    
    .support-chat-popup-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10001;
        background: rgba(25, 15, 40, 1);
        border-bottom: 1px solid rgba(167, 89, 255, 0.2);
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .support-chat-popup-back {
        display: flex;
    }
    
    .support-chat-popup-title {
        flex: 1;
        text-align: center;
    }
    
    .support-chat-popup-messages {
        padding-top: 70px;
        padding-bottom: 120px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .support-chat-popup-input-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10001;
        background: rgba(25, 15, 40, 1);
        border-top: 1px solid rgba(167, 89, 255, 0.2);
        padding: 12px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .support-chat-popup-message {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 10002;
        background: rgba(25, 15, 40, 0.95);
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .support-rating-modal {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .support-rating-modal-content {
        padding: 24px 20px;
    }
    
    .support-rating-modal-title {
        font-size: 18px;
    }
    
    .support-rating-star svg {
        width: 36px;
        height: 36px;
    }
}

/* ===== Мобильная адаптация ===== */

/* Мини-иконка логотипа - скрыта по умолчанию */
.mini-main-logo {
    display: none;
}

/* Кнопка гамбургер-меню - скрыта по умолчанию, стиль как у кнопки техподдержки */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #FFFFFF26;
    cursor: pointer;
    transition: background-color 0.15s ease;
    top: 20px;
    right: 20px;
    border: none;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-menu-toggle:hover {
    background-color: #FFFFFF3A;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: #929292;
    border-radius: 2px;
    display: block;
    position: relative;
}

/* Убираем все анимации и трансформации - всегда показываем 3 полоски */
.mobile-menu-toggle.active span:nth-child(1),
.mobile-menu-toggle.active span:nth-child(2),
.mobile-menu-toggle.active span:nth-child(3) {
    transform: none;
    opacity: 1;
}

/* Кнопка авторизации в хедере для мобильной версии */
.mobile-auth-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 40px;
    background: linear-gradient(125deg,#3EFD7B 0%, #c1f5d1 25%, #3EFD7B 40%, #04a136 100%);
    color: #151022;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 20px 0 #48FD784D;
    background-size: 250% 100%;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out, background-position 0.2s ease;
    background-position: 80% 50%;
    margin-right: 20px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.mobile-auth-btn:hover {
    background-position: 50% 60%;
    box-shadow: 0 0 20px 0 #48FD784D;
    transform: scale(102%);
    transition: 0.2s;
}

.mobile-auth-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.mobile-auth-btn.processing {
    pointer-events: none;
    opacity: 0.7;
}

/* Убираем hover эффекты на touch устройствах */
@media (hover: none) and (pointer: coarse) {
    .mobile-auth-btn:hover {
        transform: none;
        background-position: 80% 50%;
    }
    
    .mobile-auth-btn:active {
        transform: scale(0.97);
        opacity: 0.85;
    }
}

/* Боковое меню - скрыто по умолчанию */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.98) 0%, rgba(20, 10, 35, 0.98) 100%);
    border-left: 1px solid rgba(167, 89, 255, 0.2);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transition: right 0.3s ease;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
    display: flex;
}

/* Красивый скроллбар для мобильного меню */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(167, 89, 255, 0.4);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 89, 255, 0.6);
}

/* Для Firefox */
.mobile-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 89, 255, 0.4) transparent;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    position: absolute;
    z-index: 10;
    background: transparent;
}

.mobile-menu-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
    z-index: 11;
}

.mobile-menu-back-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-back-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.mobile-menu-close-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    gap: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-menu-close-btn span {
    width: 26px;
    height: 3px;
    background-color: rgb(180, 180, 180);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.mobile-menu-close-btn span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 3px);
}

.mobile-menu-close-btn span:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -3px);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    padding: 80px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Красивый скроллбар для контента меню */
.mobile-menu-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(167, 89, 255, 0.4);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 89, 255, 0.6);
}

/* Для Firefox */
.mobile-menu-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 89, 255, 0.4) transparent;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-link:hover {
    color: #A759FF;
}

.mobile-menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}

.mobile-menu-icon path {
    transition: opacity 0.2s ease;
}

.mobile-menu-link:hover .mobile-menu-icon path {
    opacity: 1;
}

/* Кнопка техподдержки в мобильном меню */
.mobile-menu-support-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: left;
}

.mobile-menu-support-btn:hover {
    color: #A759FF;
}

.mobile-menu-support-btn .mobile-menu-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
    flex-shrink: 0;
}

.mobile-menu-support-btn .mobile-menu-icon path {
    transition: opacity 0.2s ease;
}

.mobile-menu-support-btn:hover .mobile-menu-icon path {
    opacity: 1;
}

.mobile-menu-support-btn span {
    pointer-events: none;
}

/* Элементы мобильного меню управляются через классы login-in и none-login-in */
/* updateAuthUI в JavaScript управляет их видимостью через jQuery */

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-menu-auth-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(125deg,#3EFD7B 0%, #c1f5d1 25%, #3EFD7B 40%, #04a136 100%);
    color: #151022;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px 0 #48FD784D;
}

.mobile-menu-auth-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px 0 #48FD784D;
}

.mobile-menu-logout-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* На десктопе кнопка меню всегда скрыта */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-auth-btn {
        display: none !important;
    }
    
    /* Скрываем карточку инвентаря на десктопе */
    .category-card--inventory.mobile-only {
        display: none !important;
    }
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Показываем карточку инвентаря на мобильных */
    .category-card--inventory.mobile-only {
        display: flex !important;
    }
    
    /* Показываем мини-иконку, скрываем обычную и lig-logo */
    .main-logo {
        display: none !important;
    }
    
    .lig-logo {
        display: none !important;
    }
    
    .mini-main-logo {
        display: block !important;
        width: 96px;
        height: auto;
    }
    
    /* Скрываем обычное меню */
    .menu {
        display: none !important;
    }
    
    /* Адаптируем правую часть header для мобильной версии */
    .header-right {
        display: flex !important;
        width: auto;
        margin-right: 12px;
        margin-left: auto;
    }
    
    /* Показываем header-right для авторизованных на мобильной версии */
    .header-right:has(.user-balance.login-in[style*="display: flex"]),
    .header-right:has(.top-up-btn.login-in[style*="display: flex"]),
    .header-right:has(.avatar.user-avatar.login-in[style*="display: block"]),
    .header-right:has(.user-balance.login-in):not(:has(.auth-btn.none-login-in[style*="display: flex"])),
    .header-right:has(.top-up-btn.login-in):not(:has(.auth-btn.none-login-in[style*="display: flex"])),
    .header-right:has(.avatar.user-avatar.login-in):not(:has(.auth-btn.none-login-in[style*="display: flex"])) {
        display: flex !important;
    }
    
    /* Скрываем header-right для неавторизованных на мобильной версии */
    /* Только если нет видимых элементов login-in */
    .header-right:has(.auth-btn.none-login-in):not(:has(.user-balance.login-in)):not(:has(.top-up-btn.login-in)):not(:has(.avatar.user-avatar.login-in)) {
        display: none !important;
    }
    
    .user-section {
        gap: 8px;
        margin-right: 0;
        display: flex !important;
    }
    
    /* Баланс в мобильной версии - только для авторизованных */
    .user-balance.login-in {
        display: flex !important;
        margin-right: 0;
        gap: 6px;
    }
    
    /* Скрываем баланс для неавторизованных на мобильной версии */
    .user-balance:not(.login-in),
    .user-balance.none-login-in {
        display: none !important;
    }
    
    /* Показываем кнопку пополнить и аватарку для авторизованных на мобильной версии */
    .top-up-btn.login-in {
        display: flex !important;
    }
    
    /* Скрываем кнопку пополнить для неавторизованных на мобильной версии */
    .top-up-btn:not(.login-in),
    .top-up-btn.none-login-in {
        display: none !important;
    }
    
    .avatar.user-avatar.login-in {
        display: block !important;
    }
    
    /* Скрываем аватарку для неавторизованных на мобильной версии */
    .avatar.user-avatar:not(.login-in),
    .avatar.user-avatar.none-login-in {
        display: none !important;
    }
    
    /* Скрываем кнопку техподдержки на мобильной версии */
    .support {
        display: none !important;
    }
    
    /* Скрываем кнопку меню для неавторизованных на мобильной версии */
    .mobile-menu-toggle:not(.login-in),
    .mobile-menu-toggle.none-login-in {
        display: none !important;
    }
    
    /* Скрываем десктопную кнопку авторизации на мобильной версии */
    .auth-btn.none-login-in {
        display: none !important;
    }
    
    .user-balance .gradient-ico {
        width: 24px;
        height: 24px;
    }
    
    .user-balance .ico-balance {
        width: 24px;
        height: 24px;
    }
    
    .user-balance .ico-balance img {
        width: 14px;
        height: 14px;
    }
    
    .user-balance h2 {
        font-size: 14px;
    }
    
    /* Кнопка пополнить - маленький квадратик с плюсом */
    .top-up-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        min-width: 28px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0;
        position: relative;
        border-radius: 6px !important;
    }
    
    .top-up-btn::before {
        content: '+';
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }
    
    /* Аватарка в мобильной версии - такого же размера как кнопка меню */
    .avatar.user-avatar {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        border-radius: 12px;
    }
    
    /* Скрываем техподдержку в мобильной версии (она в меню) */
    .support {
        display: none !important;
    }
    
    /* Показываем кнопку "Назад" в мобильном меню только на мобильной версии */
    .mobile-menu-back-btn {
        display: flex !important;
    }
    
    /* Скрываем все элементы login-in для неавторизованных на мобильной версии */
    /* Если header-right скрыт (неавторизован), скрываем все элементы внутри */
    
    .user-balance:not(.login-in),
    .user-balance.none-login-in,
    .top-up-btn:not(.login-in),
    .top-up-btn.none-login-in,
    .avatar.user-avatar:not(.login-in),
    .avatar.user-avatar.none-login-in,
    .mobile-menu-toggle:not(.login-in),
    .mobile-menu-toggle.none-login-in {
        display: none !important;
    }
    
    /* Показываем кнопку гамбургер-меню только если авторизован (через класс login-in) */
    /* Если не авторизован, updateAuthUI установит display: none через inline стили */
    .mobile-menu-toggle.login-in {
        display: flex;
        margin-right: 20px;
    }
    
    /* Скрываем кнопку меню, если нет класса login-in (не авторизован) */
    .mobile-menu-toggle:not(.login-in) {
        display: none !important;
    }
    
    .mobile-auth-btn {
        display: flex;
    }
    
    /* Скрываем десктопную кнопку авторизации на мобильной версии */
    .auth-btn {
        display: none !important;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Адаптируем логотип */
    .logo {
        width: auto;
        margin: 0 0 0 20px;
        max-width: calc(100vw - 80px);
    }
    
    .logo a {
        gap: 0;
        max-width: 100%;
    }
    
    .header {
        justify-content: space-between;
        padding: 0;
        margin: 0;
        align-items: center;
    }
    
    /* Предотвращаем горизонтальный скролл */
    .container {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        max-width: calc(100vw - 30px);
        transition: 0.2s;
    }
    
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Новости и гифт в столбик на мобильных */
    .news-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .news-carousel-wrapper {
        width: 100%;
        max-width: 100%;
        height: 260px;
    }
    
    .gift {
        width: 100%;
        max-width: 100%;
        height: 260px;
        border-radius: 20px;
    }
    
    .gift-img {
        height: 300px;
        width: 300px;
        min-height: 300px;
        min-width: 300px;
        top: auto;
        bottom: -70px;
        right: 0;
        left: auto;
        background-image: url("/api/images/gift-mob.svg");
        background-size: 300px 300px;
        background-position: right bottom;
        background-repeat: no-repeat;
        border-radius: 0;
        z-index: 1;
        opacity: 1;
        transform: none !important;
        will-change: auto;
    }
    
    /* Переносы текста в мобильной версии для гифта */
    .gift-info h2 .gift-text-mobile {
        display: inline;
    }
    
    .gift-info h2 .gift-text-desktop {
        display: none;
    }
    
    /* Уменьшаем слайдер покупок */
    .live-purchases {
        overflow-x: visible;
    }
    
    .live-purchases__header {
        gap: 2px;
    }
    
    .live-purchases__icon {
        flex: 0 0 45px;
        width: 45px;
        height: 45px;
    }
    
    .live-purchases__icon img {
        width: 24px;
        height: 24px;
    }
    
    .live-purchases__title h2 {
        font-size: 18px;
    }
    
    .live-purchases__list {
        overflow-x: visible;
    }
    
    .live-purchases__item {
        height: 36px;
        border-radius: 12px;
        padding: 7px 0px;
        flex-shrink: 0;
    }
    
    .live-purchases__item.is-visible {
        min-width: 160px;
        padding: 7px 14px;
        margin-right: 12px;
    }
    
    .live-purchases__item-info h3 {
        font-size: 13px;
    }
    
    .live-purchases__item-info span {
        font-size: 11px;
    }
    
    .live-purchases__item-icon {
        width: 42px;
        height: 42px;
    }
    
    /* Адаптация карточек категорий */
    .categories-row {
        flex-wrap: wrap !important;
        gap: 15px;
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
    
    .category-card {
        min-height: 180px;
        border-radius: 16px;
        padding: 12px;
        box-sizing: border-box;
        flex: 0 0 auto;
    }
    
    /* Первые две карточки в ряд */
    .category-card:nth-child(1),
    .category-card:nth-child(2) {
        flex: 0 0 calc(50% - 7.5px) !important;
        width: calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
    }
    
    /* Третья и четвертая карточки в ряд */
    .category-card:nth-child(3),
    .category-card:nth-child(4) {
        flex: 0 0 calc(50% - 7.5px) !important;
        width: calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        border-radius: 16px !important;
        padding: 12px !important;
    }
    
    /* Третья карточка (shop) - убираем margin: 0 auto, чтобы была слева */
    .category-card:nth-child(3) {
        margin: 0;
    }
    
    .category-card__image-container {
        border-radius: 16px;
    }
    
    /* Уменьшаем размеры изображений пропорционально */
    .category-card__image {
        width: 190px !important;
        height: 190px !important;
    }
    
    /* Первая карточка (coinflip) - поднимаем изображение выше и поворачиваем против часовой */
    .category-card--coinflip .category-card__image-container .category-card__image,
    .category-card--coinflip .category-card__image {
        width: 230px !important;
        height: 230px !important;
        top: calc(45% + 0px) !important;
        left: calc(50% + 25px) !important;
        transform: translate(-50%, -50%) rotate(-6deg) translateZ(0) !important;
    }
    
    /* Вторая карточка (boxbattle) - поднимаем изображение выше */
    .category-card--boxbattle .category-card__image-container .category-card__image,
    .category-card--boxbattle .category-card__image {
        width: 245px !important;
        height: 245px !important;
        top: calc(40% - 5px) !important;
    }
    
    .category-card--shop .category-card__image-container .category-card__image,
    .category-card--shop .category-card__image {
        width: 235px !important;
        height: 235px !important;
    }
    
    .category-card__image2 {
        width: 190px !important;
        height: 190px !important;
    }
    
    /* Первая карточка (coinflip) - поднимаем изображение выше и поворачиваем против часовой */
    .category-card--coinflip .category-card__image2 {
        width: 230px !important;
        height: 230px !important;
        top: calc(45% + 0px) !important;
        left: calc(50% + 25px) !important;
        transform: translate(-50%, -50%) rotate(-6deg) translateZ(0) !important;
    }
    
    /* Вторая карточка (boxbattle) - поднимаем изображение выше */
    .category-card--boxbattle .category-card__image2 {
        width: 245px !important;
        height: 245px !important;
        top: calc(40% - 5px) !important;
    }
    
    .category-card--shop .category-card__image2 {
        width: 235px !important;
        height: 235px !important;
    }
    
    /* Четвертая карточка (inventory) - настраиваем размеры изображения и поднимаем выше */
    .category-card--inventory .category-card__image-container .category-card__image,
    .category-card--inventory .category-card__image {
        width: 190px !important;
        height: 190px !important;
        top: 40% !important;
    }
    
    .category-card--inventory .category-card__image2 {
        width: 190px !important;
        height: 190px !important;
        top: 40% !important;
    }
    
    /* Уменьшаем размеры внутренних элементов */
    .category-card__online {
        bottom: 40px;
        left: 12px;
        gap: 4px;
    }
    
    .category-card__online img {
        width: 10px;
        height: 10px;
    }
    
    .category-card__online span {
        font-size: 10px;
    }
    
    .category-card__content {
        gap: 8px;
    }
    
    .category-card__content h3 {
        font-size: 18px;
    }
    
    .category-card__cta {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    
    .category-card__cta img {
        width: 14px;
    }
    
    .category-card__badge {
        left: 12px;
    }
    
    .category-card__badge::before {
        font-size: 9px;
        padding: 4px 8px;
        border-radius: 0 0 4px 4px;
    }
}

/* Для очень маленьких экранов - уменьшаем высоту блоков новостей и гифта */
@media (max-width: 480px) {
    .news-carousel-wrapper {
        height: 200px;
    }
    
    .gift {
        height: 200px;
    }
    
    /* Дополнительное уменьшение карточек категорий */
    .category-card {
        min-height: 150px;
        padding: 10px;
    }
    
    .category-card__image {
        width: 150px !important;
        height: 150px !important;
    }
    
    .category-card--coinflip .category-card__image-container .category-card__image,
    .category-card--coinflip .category-card__image {
        width: 190px !important;
        height: 190px !important;
    }
    
    .category-card--boxbattle .category-card__image-container .category-card__image,
    .category-card--boxbattle .category-card__image {
        width: 195px !important;
        height: 195px !important;
    }
    
    .category-card--shop .category-card__image-container .category-card__image,
    .category-card--shop .category-card__image {
        width: 185px !important;
        height: 185px !important;
    }
    
    .category-card__image2 {
        width: 150px !important;
        height: 150px !important;
    }
    
    .category-card--coinflip .category-card__image2 {
        width: 190px !important;
        height: 190px !important;
    }
    
    .category-card--boxbattle .category-card__image2 {
        width: 195px !important;
        height: 195px !important;
    }
    
    .category-card--shop .category-card__image2 {
        width: 185px !important;
        height: 185px !important;
    }
    
    /* Четвертая карточка (inventory) для очень маленьких экранов */
    .category-card--inventory .category-card__image-container .category-card__image,
    .category-card--inventory .category-card__image {
        width: 130px !important;
        height: 130px !important;
        top: 40% !important;
    }
    
    .category-card--inventory .category-card__image2 {
        width: 130px !important;
        height: 130px !important;
        top: 40% !important;
    }
    
    .category-card__content h3 {
        font-size: 16px;
    }
    
    .category-card__cta {
        width: 24px;
        height: 24px;
    }
    
    .category-card__cta img {
        width: 12px;
    }
    
    /* Адаптация футера для мобильной версии */
    .footer-row {
        flex-direction: column !important;
        gap: 30px;
        align-items: flex-start;
    }
    
    .footer-left {
        width: 100% !important;
    }
    
    .footer-middle {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        flex: 0 1 auto;
        max-width: 60%;
    }
    
    .footer-menu-left {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .footer-right {
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start !important;
    }
    
    .social {
        justify-content: flex-start;
    }
    
    /* Адаптация уведомлений для мобильных */
    .notifications-container {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    
    .notification-card {
        min-width: 200px;
        max-width: calc(100vw - 24px);
        padding: 12px 14px 12px 40px;
        border-radius: 10px;
        gap: 4px;
    }
    
    .notification-icon {
        top: 10px;
        left: 10px;
        width: 22px;
        height: 22px;
        border-radius: 6px;
        font-size: 13px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-message.secondary {
        font-size: 11px;
    }
    
    .notification-amount {
        font-size: 12px;
        gap: 6px;
        margin-top: 2px;
    }
    
    .notification-amount .amount-icon {
        width: 16px;
        height: 16px;
    }
    
    .notification-amount .amount-icon img {
        width: 16px;
        height: 16px;
    }
    
    .notification-amount-inline {
        gap: 4px;
    }
    
    .notification-amount-inline img {
        width: 12px;
        height: 12px;
    }
    
    .notification-meta {
        font-size: 11px;
    }
    
    .notification-actions {
        margin-top: 4px;
    }
    
    .notification-action-btn {
        font-size: 11px;
        padding: 5px 10px;
        border-radius: 6px;
    }
    
    .notification-close-btn {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
    }
}

/* Предотвращаем скролл body когда меню открыто */
body.mobile-menu-open {
    overflow: hidden;
}