/* ============================================================
   THEME FOR GAMESTORES — «RUST X2» (тёмный индустриальный)
   Вставить в: админка GameStores -> Настройки -> Дизайн -> CSS
   Основные цвета меняются в :root ниже
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rubik:wght@400;500;600&display=swap');

:root {
  --rs-red: #CE422B;        /* растовый красно-оранжевый */
  --rs-amber: #FF9C07;      /* янтарный акцент */
  --rs-bg: #0d0e10;         /* фон страницы */
  --rs-panel: #15171b;      /* панели/карточки */
  --rs-panel-2: #1b1e24;    /* карточка при наведении */
  --rs-border: #2a2e36;     /* границы */
  --rs-text: #e8e6e3;       /* основной текст */
  --rs-muted: #9a9a9a;      /* приглушённый текст */
}

/* ---------- Фон и база ---------- */
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(206, 66, 43, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 156, 7, .06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px),
    var(--rs-bg) !important;
  color: var(--rs-text) !important;
  font-family: 'Rubik', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, .panel-title, [class*="title"] {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}

::selection { background: var(--rs-amber); color: #111; }

/* ---------- Шапка ---------- */
.navbar, header, [class*="header"]:not([class*="card"]) {
  background: rgba(13, 14, 16, .92) !important;
  border-bottom: 1px solid var(--rs-border) !important;
  backdrop-filter: blur(8px);
}
.navbar a, header a { color: var(--rs-text) !important; transition: color .2s; }
.navbar a:hover, header a:hover { color: var(--rs-amber) !important; }

/* ---------- Карточки товаров / категории ---------- */
.card, .panel, [class*="product"], [class*="category"] {
  background: linear-gradient(160deg, var(--rs-panel) 0%, #121418 100%) !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.45) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
  overflow: hidden;
}
.card:hover, [class*="product"]:hover, [class*="category"]:hover {
  transform: translateY(-4px);
  border-color: var(--rs-red) !important;
  box-shadow: 0 14px 34px rgba(206, 66, 43, .22) !important;
}
/* оранжевая полоска сверху карточки */
.card::before, [class*="product"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rs-red), var(--rs-amber));
  opacity: 0;
  transition: opacity .25s;
}
.card:hover::before, [class*="product"]:hover::before { opacity: 1; }

/* ---------- Кнопки ---------- */
.btn, button, [class*="btn"]:not([class*="close"]) {
  background: linear-gradient(135deg, var(--rs-red), #a3321f) !important;
  border: none !important;
  color: #fff !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 8px !important;
  transition: all .2s ease !important;
}
.btn:hover, button:hover, [class*="btn"]:hover {
  background: linear-gradient(135deg, var(--rs-amber), var(--rs-red)) !important;
  box-shadow: 0 0 18px rgba(255, 156, 7, .45) !important;
  transform: translateY(-2px);
}
.btn:active, button:active { transform: translateY(0) scale(.97); }

/* ---------- Поля ввода ---------- */
input, textarea, select, .form-control {
  background: #0f1114 !important;
  border: 1px solid var(--rs-border) !important;
  color: var(--rs-text) !important;
  border-radius: 8px !important;
}
input:focus, textarea:focus, .form-control:focus {
  border-color: var(--rs-amber) !important;
  box-shadow: 0 0 0 3px rgba(255, 156, 7, .15) !important;
  outline: none !important;
}

/* ---------- Модальные окна ---------- */
.modal-content {
  background: var(--rs-panel) !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.7) !important;
}

/* ---------- Цены / бейджи ---------- */
[class*="price"], [class*="cost"], [class*="badge"] {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600;
}
[class*="price"], [class*="cost"] { color: var(--rs-amber) !important; }

/* ---------- Скроллбар ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f1013; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rs-red), var(--rs-amber));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--rs-amber); }

/* ---------- Анимация появления (класс вешает theme.js) ---------- */
.rs-reveal { animation: rsFadeUp .45s ease both; }
@keyframes rsFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Баннер-объявление (создаёт theme.js) ---------- */
#rs-banner {
  position: relative;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 44px 10px 16px;
  background: linear-gradient(90deg, var(--rs-red), #8f2d1c);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
#rs-banner a { color: #ffd98a; text-decoration: underline; }
#rs-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: .8;
}
#rs-banner-close:hover { opacity: 1; box-shadow: none !important; transform: translateY(-50%); }

/* ---------- Кнопка «вверх» (создаёт theme.js) ---------- */
#rs-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--rs-red), var(--rs-amber)) !important;
  color: #fff;
  font-size: 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(206, 66, 43, .5);
}
#rs-top.rs-show { opacity: 1; pointer-events: auto; }
#rs-top:hover { transform: translateY(-3px); }

/* ---------- Блок соцсетей (VK / Discord / Telegram) ---------- */
.socials__title {
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    color: #737572;
    margin-bottom: 22px
}

.socials__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden
}

.socials__item+.socials__item {
    margin-top: 16px
}

.socials__item_vk {
    background: linear-gradient(180deg, rgba(50, 119, 170, 0.6) 0%, #477bff 100%)
}

.socials__item_vk .socials__item-bg {
    background: url("https://i.imgur.com/eIEvMCw.png")
}

.socials__item_ds {
    background: linear-gradient(180deg, rgba(151, 71, 255, 0.6) 0%, #9747ff 100%)
}

.socials__item_ds .socials__item-bg {
    background-image: url("https://i.imgur.com/bcMvuX3.png")
}

.socials__item_tg {
    background: linear-gradient(180deg, rgba(50, 119, 170, 0.6) 0%, #477bff 100%)
}

.socials__item_tg .socials__item-bg {
    background: url("https://i.imgur.com/caabuFI.png")
}

.socials__item-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1
}

.socials__item-left {
    position: relative;
    z-index: 2
}

.socials__item-title {
    text-transform: uppercase;
    font-size: 10px;
    color: rgba(224, 224, 224, 0.68);
    margin-bottom: 8px;
    font-weight: 300
}

.socials__item-name {
    font-size: 15px;
    color: #f2f2f2;
    font-weight: 500
}

.socials__item-right {
    position: relative;
    z-index: 2
}

.socials__item-link {
    padding: 13px 9.5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 10px;
    transition: all 0.3s ease-out
}

.socials__item-link:hover {
    background: #ffffff;
    color: #121218
}