#app:has(> div > main > div > div > div.products-container) .right-column {
  display: none;
}

#app:has(> div > main > div > div > div.products-container) .grid-wrapper {
  display: block;
}
/* === DARK MODE ФОН С РАЗМЫТЫМИ ДВИЖУЩИМИСЯ ЧАСТИЦАМИ === */

:root {
    --main-bg-color: #0f1115;
    --main-white-color: #ffffff;
    --main-white-gray-color: #161a20;
    --main-text-color: #e5e7eb;
    --main-dark-color: #111827;
}

/* Основной контейнер приложения */
.app-wrapper {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(
        circle at top,
        #161a20 0%,
        #0f1115 60%
    );
    color: var(--main-text-color);
    overflow: hidden;
    z-index: 0;
}

/* Слои частиц */
.app-wrapper::before,
.app-wrapper::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: -1;
    filter: blur(90px);
    opacity: 0.55;
    animation: dark-particles-move 50s linear infinite;
    background-repeat: no-repeat;
}

/* Первый слой */
.app-wrapper::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(90, 100, 120, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 70% 20%, rgba(70, 80, 100, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(60, 70, 90, 0.25) 0%, transparent 55%);
}

/* Второй слой (медленнее и глубже) */
.app-wrapper::after {
    background-image:
        radial-gradient(circle at 80% 70%, rgba(110, 120, 140, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 30% 60%, rgba(80, 90, 110, 0.25) 0%, transparent 55%);
    animation-duration: 80s;
    opacity: 0.4;
}

/* Анимация движения */
@keyframes dark-particles-move {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-6%, -8%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Общие элементы под тёмную тему */
body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

.card,
.product-card,
.modal,
.form,
.profile-info,
.monitoring,
.recharge-panel {
    background-color: var(--main-white-gray-color);
    color: var(--main-text-color);
}

/* Тени мягче в dark mode */
.product-card,
.modal,
.form {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
/* === Сетка карточек: 5 на больших экранах, адаптивно на мобильных === */
.product-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

/* Адаптивная сетка под разные экраны */
@media (max-width: 1200px) {
    .product-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .product-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .product-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .product-cards {
        grid-template-columns: 1fr;
    }
}
/* === Блок карточек товаров с glassmorphism и hover эффектами === */
.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05); /* матовая полупрозрачная карточка */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px); /* стеклянный эффект */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Подсветка всей карточки неоновым голубым при hover */
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(173, 216, 230, 0.25); /* нежно-голубой неон */
    box-shadow: 0 0 20px rgba(173, 216, 230, 0.6), 0 0 40px rgba(173, 216, 230, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 0;
}

/* Размытые белые частицы позади изображения при hover */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Содержимое карточки поверх всех эффектов */
.product-card > * {
    position: relative;
    z-index: 1;
}

/* Плавное увеличение карточки при hover */
.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.product-card:hover::after,
.product-card:hover::before {
    opacity: 1;
}

/* Название товара сверху карточки */
.product-card-name {
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    margin: -60 px 0 4px;
    font-size: 1.1rem;
}

/* Контейнер изображения — нужен position: relative для псевдоэлемента */
.product-card-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 78%;                    /* подбери под свою карточку */
}

/* Базовое положение изображения — всегда смещено вверх */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    
    /* Постоянное смещение вверх на всех состояниях */
    transform: translateY(-25px);
    transition: 
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.45s ease;
    will-change: transform, filter;
}

/* При наведении — увеличиваем + добавляем лёгкую яркость */
.product-card:hover img {
    transform: translateY(-25px) scale(1.12);   /* сохраняем -25px + масштаб */
    filter: brightness(1.08) contrast(1.12);
}

.product-card:hover .product-card-image-container::after {
    opacity: 1;
}



/* Секция с ценой и кнопкой */
.product-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    margin-top: auto;
    position: fixed;
    margin-top: 230px;
}

/* Цена товара белым */
.product-card-price {
    color: #ffffff;
    font-weight: 800;
    margin: 4px 0;
}

/* Кнопка действия */
.product-card .product-card-button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background-color: rgba(173, 216, 230, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 8px;
}

.product-card .product-card-button:hover {
    background-color: rgba(173, 216, 230, 0.4);
    transform: scale(1.05);
}
/* Hover-эффект */
.modal-primary-button:hover {
    background-color: #a6d9b5; /* чуть темнее при наведении */
    transform: scale(1.05); /* лёгкое увеличение */
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); /* усиление тени при hover */
}
/* Кнопка "Приобрести" по центру внизу */
.modal-primary-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(1); /* изначальный масштаб */
    background-color: #1bcf3f; /* красная кнопка */
    color: #fff;
    font-size: 2rem; /* увеличенный размер текста */
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-эффект с сохранением центрирования */
.modal-primary-button:hover {
    background-color: #1bcf3f;
    transform: translateX(-50%) scale(1.1); /* увеличиваем кнопку без смещения */
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
/* Задний фон модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* полупрозрачный тёмный фон */
    backdrop-filter: blur(6px); /* размывает фон за модальным окном */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* Кнопка "Приобрести" внутри модального окна */
.modal-primary-button {
    font-size: 2rem; /* увеличенный размер шрифта */
    font-weight: 700;
    padding: 20px 40px; /* увеличенные внутренние отступы */
    display: flex;
    justify-content: center; /* горизонтальное центрирование текста */
    align-items: center;     /* вертикальное центрирование текста */
    border-radius: 14px;
}

/* .product-card-name {
  position: absolute;
  top: -25vh;
  white-space: nowrap;
} */

.product-card-footer > div {
  position: fixed;
  bottom: 10px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 12px;
}

.modal-close-button-text {
  color: white;
}

.modal {
  position: relative;           /* обязательно для абсолютного позиционирования крестика */
}

/* Скрываем оригинальный текст "Закрыть" */
.modal-close-button-text {
  display: none;                /* полностью убираем слово "Закрыть" */
}

/* Создаём крестик через ::before или ::after на кнопке */
.modal-close-button {
  position: absolute;
  top: 12px;     /* ← было bottom или  auto */
  right: 16px;   /* ← оставляем справа */
  bottom: auto;  /* ← убираем привязку к низу, если была */
  
  width: 32px;
  height: 32px;
  padding: 0;
  
  background: transparent;
  border: none;
  cursor: pointer;
  
  font-size: 0;                 /* убирает возможный отступ от текста */
}

/* Сам крестик */
.modal-close-button::before,
.modal-close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #333;             /* цвет крестика — можно поменять */
  border-radius: 1px;
}

.modal-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Эффект при наведении (опционально) */
.modal-close-button:hover::before,
.modal-close-button:hover::after {
  background: #e00;             /* красный при наведении */
}

/* Если хочешь более тонкий и аккуратный вариант — используй символ × */
.modal-close-button.alternative::after {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #444;
}

.modal-close-button.alternative:hover::after {
  color: #c00;
}

.search-wrapper-in-navbar {
    display: flex;
    align-items: center;
    max-width: 240px;
    margin-left: auto;
    margin-right: 1.2rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: #222;
    color: white;
    font-size: 0.95rem;
}

/* на мобильных можно скрыть или уменьшить */
@media (max-width: 768px) {
    .search-wrapper-in-navbar {
        display: none;           /* или width: 140px; */
    }
}

.products-types-buttons {
  flex-wrap: nowrap;
}

.product-card-price {
    background-color: #7fffd43d;
    padding: 10px;
    border-radius: .5vh;
}

.product-card-price:hover {
    background-color: black;
}


@media (max-width: 768px) {
  
  .products-types-buttons {
    flex-wrap: wrap;
  }

  /* сюда */
}
/* ===== MODERN NEON VIOLET PRODUCT PRICE BUTTON ===== */

@import url('https://fonts.cdnfonts.com/css/hero-new');  /* или другой CDN, проверь актуальность */

/* или прямой @font-face от CDNFonts */
@font-face {
  font-family: 'Hero New';
  src: url('https://fonts.cdnfonts.com/s/hero-new/v1/HeroNew-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: Hero-Bold;
}

body,
html,
* {
  font-family: 'Hero New', 'Hero', sans-serif !important;
  font-weight: 700;
}
/* Убираем лишние тени/границы/переходы, которые ломают минимализм */
.product-card,
.product-card * {
    border: none;
    outline: none;
    box-shadow: none; /* переопределяем старые, если остались */
}
/* Бейджи/скидки — маленькие, стеклянные */
.product-card-badge-days,
.product-card-badge-percentage,
.product-card-label {
    position: absolute;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: 3;
}
/* 
   Позволяет изображению вылезать за границы карточки при hover-scale
   (убирает обрезку, сохраняет карточку в своих рамках)
*/

.product-card {
    overflow: visible !important;          /* главное — убираем скрытие вылезающих частей */
    clip-path: none !important;            /* на всякий случай, если где-то был clip */
}

/* Контейнер изображения — тоже не должен обрезать */
.product-card-image-container {
    overflow: visible !important;
    position: relative;
    z-index: 1;                            /* чтобы изображение было выше других элементов */
}

/* Само изображение — принудительно разрешаем вылезать */
.product-card img {
    overflow: visible !important;
    clip-path: none !important;
    max-width: none !important;            /* снимаем ограничения по ширине */
    max-height: none !important;
    
    /* Важно: transition должен быть на transform и filter */
    transition: 
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.45s ease !important;
}

/* При наведении — увеличиваем, но уже без обрезки */
.product-card:hover img {
    transform: translateY(-25px) scale(1.18) !important;  /* твой -25px + большее увеличение */
    z-index: 2;                             /* поднимаем над другими элементами карточки */
}

/* Если название или футер перекрывают увеличенное изображение — поднимаем их выше */
.product-card-name,
.product-card-footer,
.product-card-price {
    position: relative;
    z-index: 3;                             /* выше изображения */
}

/* Опционально: если карточка всё равно обрезает по родителям */
.product-cards,
.products-container,
.grid-wrapper {
    overflow: visible !important;
}
/* -------------------------- Категории в стиле iOS 26 Liquid Glass -------------------------- */

.categories-container {
  width: 100%;
  margin: 20px 0 28px;
  padding: 8px 12px;
  background: rgba(30, 30, 36, 0.4);           /* полупрозрачный тёмный фон */
  backdrop-filter: blur(20px);                 /* главный "glass" эффект — требует поддержки браузером */
  -webkit-backdrop-filter: blur(20px);         /* для Safari/iOS */
  border-radius: 8px;                         /* крупные скругления как в iOS 26 */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);  /* лёгкий внутренний блик */
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

/* Кнопки категорий — capsule / pill форма */
.category-pill {
  flex: 0 0 auto;
  padding: 7px 20px;
  min-width: 90px;
  background: rgba(40, 40, 48, 0.55);          /* полупрозрачный "glass" слой */
  color: #ffffff;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  border-radius: 8px;                        /* идеальная capsule форма */
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.category-pill:hover {
  background: rgba(60, 60, 70, 0.75);
  color: #ffffff;
  transform: scale(1.06) translateY(-1px);     /* лёгкое увеличение + подъём */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.category-pill.active {
  background: rgba(80, 80, 95, 0.85);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 4px 20px rgba(100, 100, 120, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

/* "Все" — чуть ярче / primary акцент */
.category-pill.all {
  background: linear-gradient(135deg, rgba(50, 50, 65, 0.7), rgba(70, 70, 90, 0.7));
  border-color: rgba(120, 120, 140, 0.3);
}

/* Мобильная адаптация (iOS-подобная компактность) */
@media (max-width: 500px) {
  .categories-container {
    margin: 16px 0 20px;
    padding: 6px 10px;
    border-radius: 8px;
  }

  .category-pill {
    padding: 9px 18px;
    font-size: 14px;
    min-width: 80px;
  }
}
.servers-buttons .app-button,
.products-types-buttons .app-button {
  /* ... твои старые стили ... */
  background: rgba(40, 40, 48, 0.55) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 10px 20px !important;
  font-size: 15px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.servers-buttons .app-button:hover,
.products-types-buttons .app-button:hover {
  background: rgba(60, 60, 70, 0.75) !important;
  transform: scale(1.06) translateY(-1px) !important;
}

.servers-buttons .app-button--active,
.products-types-buttons .app-button--active {
  background: rgba(80, 80, 95, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
/* Фиксируем шрифт Manrope для всех состояний категорий */

.servers-buttons .app-button,
.products-types-buttons .app-button {
  font-family: Manrope, system-ui, sans-serif !important;
  font-weight: 500 !important;          /* или твой обычный вес */
  letter-spacing: -0.01em;              /* опционально — улучшает читаемость Manrope */
}

.servers-buttons .app-button:hover,
.products-types-buttons .app-button:hover {
  font-family: Manrope, system-ui, sans-serif !important;
  font-weight: 500 !important;
}

.servers-buttons .app-button--active,
.products-types-buttons .app-button--active,
.servers-buttons .app-button.app-button--active,
.products-types-buttons .app-button.app-button--active {
  font-family: Manrope, system-ui, sans-serif !important;
  font-weight: 600 !important;          /* если в active нужен жирнее */
}

/* Если у тебя есть глобальный стиль для .app-button — переопредели и его */
.app-button {
  font-family: Manrope, system-ui, sans-serif !important;
}
/* Принудительно белый текст для всех категорий в любых состояниях */

.servers-buttons .app-button,
.products-types-buttons .app-button,
.servers-buttons .app-button *,
.products-types-buttons .app-button * {
  color: #ffffff !important;
}

.servers-buttons .app-button:hover,
.products-types-buttons .app-button:hover,
.servers-buttons .app-button--active,
.products-types-buttons .app-button--active,
.servers-buttons .app-button.app-button--active,
.products-types-buttons .app-button.app-button--active {
  color: #ffffff !important;
}

/* Если внутри кнопок есть вложенные элементы (span, div, svg и т.д.) */
.servers-buttons .app-button span,
.products-types-buttons .app-button span,
.servers-buttons .app-button div,
.products-types-buttons .app-button div,
.servers-buttons .app-button svg,
.products-types-buttons .app-button svg {
  color: #ffffff !important;
  fill: #ffffff !important; /* для иконок SVG */
}

/* На случай, если есть глобальный сброс цвета при :active или :focus */
.servers-buttons .app-button:active,
.products-types-buttons .app-button:active,
.servers-buttons .app-button:focus,
.products-types-buttons .app-button:focus {
  color: #ffffff !important;
}
/* Универсальное скрытие всех элементов, связанных с переключением языка */
.language-switcher,
.mobile-lang-switcher,
.lang-label,
.dropdown.flag,
[class*="lang"],
[class*="language"],
[class*="locale"] {
  display: none !important;
}
/* Белый текст во всём блоке пополнения баланса */

.recharge-panel,
.recharge-panel * {
  color: #ffffff !important;
}

/* Конкретные элементы, где чаще всего остаётся чёрный текст */
.recharge-panel-header,
.recharge-panel-title,
.recharge-panel-label,
.recharge-panel-input-raw,
.recharge-panel-input-raw::placeholder,
.recharge-panel-amount-row > div,
.recharge-panel-bonus,
.recharge-panel-bonus-per-summ,
.recharge-panel-provider,
.recharge-panel-section {
  color: #ffffff !important;
}

/* Плейсхолдеры (часто остаются серыми/чёрными) */
.recharge-panel-input-raw::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;  /* полупрозрачный белый, чтобы было видно */
}

/* Если есть вложенные span/div внутри цен или бонусов */
.recharge-panel span,
.recharge-panel div,
.recharge-panel p,
.recharge-panel strong,
.recharge-panel b {
  color: #ffffff !important;
}

/* Если текст в input или кнопках тоже чёрный */
.recharge-panel input,
.recharge-panel input::placeholder {
  color: #ffffff !important;
}

.recharge-panel input:focus {
  color: #ffffff !important;
}
.product-card-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 38px;
  padding: 0 30px;
  border-radius: 14px;
  background: rgba(30, 144, 255, 0.20);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 144, 255, 0.32);
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30,144,255,.25);
  transition: transform .34s cubic-bezier(.34,1.56,.64,1), box-shadow .4s, background .5s;
}

/* Цена — полностью контролируемая */
.product-card-price .price-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity .38s ease, transform .38s ease;
}

/* "КУПИТЬ" — изначально скрыт */
.product-card-price::after {
  content: "КУПИТЬ";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  color: white;
  text-shadow: 0 0 10px rgba(30,144,255,.65);
  font-weight: 700;
  font-size: 15px;
  z-index: 2;
  transition: opacity .38s ease, transform .38s ease;
}

/* Фон при hover */
.product-card-price::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,.38), rgba(0,198,255,.28));
  opacity: 0;
  z-index: 1;
  transition: opacity .48s ease;
}

/* Hover */
.product-card-price:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(30,144,255,.48);
  background: rgba(30,144,255,.32);
}

.product-card-price:hover::before {
  opacity: 1;
}

/* Полное и надёжное скрытие цены */
.product-card-price:hover .price-text {
  opacity: 0;
  transform: translateY(-30px);
  visibility: hidden;
  pointer-events: none;
}

/* "КУПИТЬ" выходит на передний план */
.product-card-price:hover::after {
  opacity: 1;
  transform: translateY(0);
  z-index: 4;
}

/* Нажатие */
.product-card-price:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 16px rgba(30,144,255,.35);
}
/* Костыль: полностью скрываем цену при наведении на кнопку */

.product-card-price:hover {
  color: transparent !important;
}

.product-card-price:hover * {
  color: transparent !important;
  opacity: 0 !important;
}

/* Если цена в span или другом элементе — дополнительно скрываем его */
.product-card-price:hover span,
.product-card-price:hover strong,
.product-card-price:hover b,
.product-card-price:hover .price,
.product-card-price:hover .price-text {
  color: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* "КУПИТЬ" остаётся видимым (переопределяем обратно) */
.product-card-price:hover::after {
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Центрируем "КУПИТЬ" идеально по центру кнопки */
.product-card-price::after {
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;           /* убирает лишние отступы по вертикали */
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(0) !important;  /* сбрасываем любые сдвиги */
}

/* На hover тоже принудительно центрируем */
.product-card-price:hover::after {
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
/* Убираем старый яркий неон и блики */
.product-card::before,
.product-card::after {
  opacity: 0 !important;
  transition: none !important;
}
/* Вставь в конец CSS */
.products-container,
.product-cards,
.grid-wrapper {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

.product-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 16px !important;
}
.product-card img {
    loading: eager !important;
}
/* =====================================================
   Белое окно выбора сервера + чёрный текст (для всех устройств)
   ===================================================== */

/* Основной контейнер выпадающего списка (select или div) */
select,
div[class*="select-server"],
div[class*="server-select"],
div[class*="dropdown-server"],
[role="listbox"],
[aria-label*="сервер"],
.select-options,
.select-display {
  background-color: #ffffff !important; /* белый фон */
  color: #000000 !important;           /* чёрный текст */
  border: 1px solid #cccccc !important; /* серая рамка */
  border-radius: 8px !important;
}

/* Все пункты списка (option или div внутри) */
select option,
.select-options div,
.select-option,
.select-item {
  background-color: #ffffff !important;
  color: #000000 !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #eeeeee !important;
}

/* При наведении на пункт */
select option:hover,
.select-option:hover,
.select-item:hover {
  background-color: #f0f0f0 !important; /* светло-серый hover */
  color: #000000 !important;
}

/* Выбранный пункт */
select option:checked,
select option[selected],
.select-option.active,
.select-item.active {
  background-color: #e6f0ff !important; /* лёгкий голубой для выбранного */
  color: #000000 !important;
  font-weight: 600 !important;
}

/* Стрелка вниз (если стандартный select) */
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpolygon points='0,0 12,0 6,12' fill='%23000000'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  padding-right: 30px !important; /* место для стрелки */
}

/* Если окно выбора — кастомный div с overflow (часто в модалках) */
.select-options,
.dropdown-menu,
[role="listbox"] {
  background-color: #ffffff !important;
  border: 1px solid #cccccc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  max-height: 280px !important;
  overflow-y: auto !important;
}

/* Текст внутри (на всякий случай) */
.select-display,
.select-text,
.select-option span,
.select-item span {
  color: #000000 !important;
}
/* =====================================================
   Шрифт Hero New (Bold 700) для кнопки "Приобрести" и выбора сервера
   ===================================================== */

/* Кнопка "Приобрести" */
.modal-primary-button,
.modal-primary-button *,
.modal-primary-button-text,
.modal-primary-button span,
.modal-primary-button div {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: normal !important; /* если нужно подогнать — можно -0.01em */
}

/* Выпадающий список серверов (select и кастомные элементы) */
select,
.select-display,
.select-options,
.select-container,
.select-option,
.select-item,
div[class*="select-"],
div[class*="dropdown-server"],
div[class*="server-select"],
[role="listbox"],
[aria-label*="сервер"] {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 1rem !important;
  color: #000000 !important;
}

/* Пункты списка (option или div) */
select option,
.select-options div,
.select-option span,
.select-item span {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* Выбранный пункт */
select option:checked,
select option[selected],
.select-option.active,
.select-item.active,
.select-display .selected {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* Если нужно сделать жирнее/тоньше — подстрой вес */
.modal-primary-button {
  font-weight: 700 !important;
}

.select-display,
.select-text {
  font-weight: 700 !important;
}
/* =====================================================
   Чёрный текст в поле количества предметов
   ===================================================== */

/* Основное поле ввода количества (amount-control-count, amount-control-input и т.д.) */
.amount-control-count,
.amount-control-input,
.amount-control-total,
.amount-control-counter,
input[type="number"],
input[type="text"][class*="amount"],
.recharge-panel-input-raw,
.recharge-panel-input,
.product-modal input,
.modal input {
  color: #000000 !important;           /* чёрный текст */
  background-color: #ffffff !important; /* белый фон (на всякий случай) */
  caret-color: #000000 !important;      /* чёрный курсор */
}

/* Плейсхолдер тоже чёрный */
.amount-control-input::placeholder,
.recharge-panel-input-raw::placeholder,
input::placeholder {
  color: #333333 !important; /* тёмно-серый для плейсхолдера, чтобы было видно */
  opacity: 0.8 !important;
}

/* Кнопки +/- (если они белые и сливаются) */
.amount-control-counter-button,
.amount-control-counter-button * {
  color: #000000 !important;
}

/* Если поле кастомное (div вместо input) */
.amount-control-counter,
.amount-control-row > div,
.amount-control > div {
  color: #000000 !important;
}

/* Дополнительная защита для модального окна покупки */
.modal,
.product-modal,
.recharge-panel {
  --main-text-color: #000000 !important;
  --main-white-color: #ffffff !important;
}
/* =====================================================
   Шрифт Hero New Bold для поля ввода количества в модалке карточки
   ===================================================== */

/* Основные поля ввода количества в модальном окне */
.amount-control-count,
.amount-control-input,
.amount-control-total,
.amount-control-counter,
.amount-control-total-rub,
input[type="number"],
input[type="text"][class*="amount"],
.product-modal input,
.modal input,
.recharge-panel-input-raw,
.recharge-panel-input,
.amount-control input {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 1.2rem !important; /* подгони под размер, если нужно */
  letter-spacing: normal !important;
  color: #000000 !important;
}

/* Плейсхолдеры в этих полях */
.amount-control-input::placeholder,
.recharge-panel-input-raw::placeholder,
input::placeholder {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  color: #555555 !important; /* тёмно-серый, чтобы было видно */
  opacity: 0.8 !important;
}

/* Кнопки + / - рядом с полем */
.amount-control-counter-button,
.amount-control-counter-button * {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
}

/* Итоговая сумма и другие текстовые элементы в модалке */
.amount-control-total,
.amount-control-total-rub,
.amount-control-total span,
.product-modal .amount-control-total {
  font-family: 'Hero New', sans-serif !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

/* Защита от наследования тёмных стилей */
.modal,
.product-modal,
.recharge-panel {
  --main-text-color: #000000 !important;
  --main-dark-color: #000000 !important;
}
.servers-buttons,
[class*="servers-buttons"] {
  display: none !important;
}
/* Исправляем иероглифы при наведении на цену / карточки товаров */
.product-card-price,
.product-card-price *,
.product-card-price:hover,
.product-card-price:hover *,
.product-card-old-price,
.product-card-old-price *,
.product-card-discount-price,
.product-card-discount-price *,
.price,               /* если где-то используется просто .price */
.sum,                 /* если есть класс .sum */
.amount,
[data-price],
span[style*="font-family"] {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
    
    /* На всякий случай убираем возможные странные шрифты */
    font-feature-settings: normal !important;
}
.recharge-panel-input.readonly {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;           /* отключаем анимацию появления */
}

/* на всякий случай перебиваем hover, если он что-то меняет */
.recharge-panel-input.readonly:hover {
    opacity: 1 !important;
    color: #000000 !important;
}
/* Поле ввода суммы — всегда чёрный текст, всегда видимый */
.recharge-panel-input-raw {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #ffffff !important;
    
    /* Отключаем любые анимации/переходы, которые могут прятать текст */
    transition: none !important;
    -webkit-transition: none !important;
}

/* При фокусе, наведении, активном состоянии — ничего не меняем */
.recharge-panel-input-raw:focus,
.recharge-panel-input-raw:hover,
.recharge-panel-input-raw:active,
.recharge-panel-input-raw:focus-visible {
    color: #000000 !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
    outline: none !important;           /* убираем синюю рамку фокуса, если не нужна */
    box-shadow: none !important;
}

/* Плейсхолдер — читаемый, но не основной текст */
.recharge-panel-input-raw::placeholder {
    color: #777777 !important;
    opacity: 0.7 !important;
}
/* Основное поле ввода суммы */
.recharge-panel-input-raw {
    color: #000000 !important;
    background-color: #ffffff !important;
    caret-color: #000000 !important;          /* мигающий курсор — чёрный */
}

/* Когда поле в фокусе — принудительно чёрный текст + чёрный caret */
.recharge-panel-input-raw:focus,
.recharge-panel-input-raw:focus-visible,
.recharge-panel-input-raw:active {
    color: #000000 !important;
    caret-color: #000000 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #000000 !important;   /* на всякий случай для автозаполнения */
}

/* Цвет выделенного текста (когда выделяешь мышкой) */
.recharge-panel-input-raw::selection,
.recharge-panel-input-raw::-moz-selection {
    background: #b3d4fc !important;           /* светло-голубой фон выделения */
    color: #000000 !important;                /* чёрный текст при выделении */
}

/* Плейсхолдер — чтобы не путался с реальным текстом */
.recharge-panel-input-raw::placeholder {
    color: #888 !important;
    opacity: 0.6 !important;
}
/* 1. Placeholder всегда тёмный / видимый */
.recharge-panel-input-raw::placeholder,
.recharge-panel-input-raw::-webkit-input-placeholder,
.recharge-panel-input-raw::-moz-placeholder,
.recharge-panel-input-raw:-ms-input-placeholder {
    color: #444444 !important;          /* или #333333 / #222222 — подбери под дизайн */
    opacity: 0.85 !important;
}

/* 2. Сам текст (значение) всегда чёрный, даже без фокуса */
.recharge-panel-input-raw {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

/* 3. При фокусе ничего не меняем в цвете (уже чёрный) */
.recharge-panel-input-raw:focus,
.recharge-panel-input-raw:focus-visible {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    caret-color: #000000 !important;
}

/* 4. На случай, если кто-то использует хитрый трюк с прозрачностью */
.recharge-panel-input-raw:not(:placeholder-shown) {
    color: #000000 !important;
}

/* 5. Родительский контейнер не должен прятать текст */
.recharge-panel-input,
.recharge-panel-input-raw {
    opacity: 1 !important;
    visibility: visible !important;
}