/* ═══════════════════════════════════════════════
   ABOBA RUST — Основные стили
   ═══════════════════════════════════════════════ */

/* ── Переменные ── */
:root {
  --bg: #020617;
  --bg2: #0b1121;
  --card: #0f172a;
  --card2: #14223d;
  --border: #131d37;
  --border2: rgba(255, 255, 255, 0.06);
  --accent: #2563eb;
  --accent2: #6aa1ff;
  --adark: #02339d;
  --text: #eaf0ff;
  --muted: #6b839f;
  --muted2: #9bb3d0;
  --green: #22c55e;
  --yellow: #f5b731;
  --red: #ef4444;
}


/* ── Сброс и базовые стили ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: "Sofia Sans", sans-serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: url('https://cdn.roserust.ru/aboba/img/bg.jpg') center center / cover fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.6) 0%, rgba(2, 6, 23, 0.85) 100%);
}


/* ── Скроллбар ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 124, 245, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 124, 245, 0.5);
}

::-webkit-scrollbar-track {
  background: transparent;
}


/* ── Кнопки баннера (чистый оверлей) ── */
.banner-overlay--clean {
  background: none;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 12px;
  padding-left: 20px;
}

.banner-actions--bottom {
  display: flex;
  gap: 10px;
}

/* ═══════════════════════════════════════════════
   ЛОАДЕР
   ═══════════════════════════════════════════════ */

/* ── Баннеры уведомлений (сверху сайта) ── */
.site-announcements {
  position: relative;
  z-index: 199;
}

.site-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
}

.site-announcement--warning {
  background: linear-gradient(90deg, #92400e, #b45309);
  color: #fef3c7;
}

.site-announcement--info {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #dbeafe;
}

.site-announcement--success {
  background: linear-gradient(90deg, #166534, #22c55e);
  color: #dcfce7;
}

.site-announcement--error {
  background: linear-gradient(90deg, #991b1b, #dc2626);
  color: #fee2e2;
}

.site-announcement-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.site-announcement-text {
  flex: 1;
  text-align: center;
}

.site-announcement-link {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Sofia Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.site-announcement-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.site-announcement-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 2px;
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s;
}

.site-announcement-close:hover {
  color: #fff;
}

.gs-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30000;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #020617;
  transition: opacity 0.4s ease;
}

.gs-loader.hidden {
  opacity: 0;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   УВЕДОМЛЕНИЯ (Toast Notifications)
   ═══════════════════════════════════════════════ */
#notif-container {
  position: fixed;
  top: 74px;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
  padding-right: 16px;
}

.notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px 0 0 12px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(18, 32, 58, 0.97);
  backdrop-filter: blur(12px);
  pointer-events: all;
  cursor: pointer;
  min-width: 260px;
  max-width: 340px;
  animation: notifIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
  overflow: hidden;
}

.notif::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--notif-color, var(--accent2));
  animation: notifBar var(--notif-dur, 3s) linear forwards;
  transform-origin: left;
}

.notif.out {
  animation: notifOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--notif-icon-bg, rgba(37, 99, 235, 0.18));
}

.notif-icon svg {
  width: 14px;
  height: 14px;
  color: var(--notif-icon-color, var(--accent2));
}

.notif-body {
  flex: 1;
}

.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.notif-sub {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 2px;
  font-weight: 500;
}

.notif-close {
  opacity: 0.4;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
}

.notif-close:hover {
  opacity: 0.8;
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes notifOut {
  to { opacity: 0; transform: translateX(110%); }
}

@keyframes notifBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}


/* ═══════════════════════════════════════════════
   ВЕРХНЯЯ ПАНЕЛЬ (Topbar)
   ═══════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  background: rgba(6, 13, 31, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(82, 140, 220, 0.1);
  gap: 8px;
  flex-shrink: 0;
}

.topbar-logo {
  height: 36px;
  flex-shrink: 0;
  margin-right: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.topbar-logo img {
  height: 100%;
  width: auto;
  image-rendering: high-quality;
}

.topbar-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

/* Элемент навигации */
.tnav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.tnav-item img,
.tnav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tnav-item img {
  object-fit: contain;
}

.tnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tnav-item.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.25);
}

/* Кнопка «Магазин» с анимацией блика */
.tnav-shop {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  color: var(--accent2) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.tnav-shop::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: skewX(-20deg);
  animation: shopShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.tnav-shop:hover {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(147, 197, 253, 0.7) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
  text-decoration: none !important;
}

@keyframes shopShine {
  0%        { left: -75%; }
  50%, 100% { left: 160%; }
}


/* ═══════════════════════════════════════════════
   ВЫПАДАЮЩЕЕ МЕНЮ (Dropdown)
   ═══════════════════════════════════════════════ */
.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(24, 40, 72, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 300;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted2);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dd-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dd-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dd-item + .dd-item {
  border-top: 1px solid var(--border2);
}


/* ═══════════════════════════════════════════════
   КНОПКИ (Buttons)
   ═══════════════════════════════════════════════ */
button {
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 12px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
  outline: none;
}

.btn-steam {
  background-image: linear-gradient(180deg, #2f74f0, #1a4ac0);
  color: #fff;
  box-shadow: 0 3px 0 rgb(10 40 120);
}

.btn-steam:hover:not(:disabled) {
  background-image: linear-gradient(180deg, #4d8fff, #1a4ac0);
  box-shadow: 0 2px 0 rgb(10 40 120);
  transform: translateY(1px);
}

.btn-steam-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-image: linear-gradient(180deg, #475569, #334155) !important;
  box-shadow: 0 3px 0 rgb(15 23 42) !important;
  position: relative;
}

.steam-btn-wrap {
  position: relative;
  display: inline-flex;
}

.steam-soon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  white-space: nowrap;
}

.btn-ghost {
  background: rgba(24, 40, 72, 0.85);
  color: var(--muted2);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(36, 58, 100, 0.9);
}

.btn-detail {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent2);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  outline: none;
  font-family: "Sofia Sans", sans-serif;
}

.btn-detail:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.45);
}

.btn-detail svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

/* Индикатор онлайна */
.online-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  white-space: nowrap;
}

.online-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}


/* ═══════════════════════════════════════════════
   ОБЁРТКА И СТРАНИЦЫ
   ═══════════════════════════════════════════════ */
.wrapper {
  display: flex;
  gap: 16px;
  padding: 18px 24px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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


/* ═══════════════════════════════════════════════
   ЗАГОЛОВКИ СЕКЦИЙ
   ═══════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent2);
}

.section-title-sm {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.section-sub-sm {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}


/* ═══════════════════════════════════════════════
   КАРТОЧКИ СЕРВЕРОВ
   ═══════════════════════════════════════════════ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.srv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.srv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at top left, rgba(59, 124, 245, 0.08), transparent 60%);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.srv-card:hover {
  border-color: rgba(106, 173, 255, 0.25);
  transform: translateY(-2px);
}

.srv-card:hover::before {
  opacity: 0;
}

/* Выключенный сервер */
.srv-card--offline {
  border-color: rgba(248, 113, 113, 0.15);
}

.srv-card--offline:hover {
  border-color: rgba(248, 113, 113, 0.25);
}

.srv-card--offline .srv-card-body {
  filter: blur(4px) brightness(0.4);
  pointer-events: none;
  user-select: none;
}

.srv-card--offline::after {
  content: 'Сервер выключен';
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  background: rgba(4, 12, 30, 0.45);
  border-radius: 17px;
  pointer-events: none;
}

/* Кнопка «Подробнее» поверх оверлея */
.srv-card--offline .srv-footer {
  position: relative;
  z-index: 11;
  filter: none;
}

.srv-card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.srv-header,
.srv-players,
.srv-bar,
.srv-footer {
  position: relative;
  z-index: 1;
}

.srv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.srv-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.srv-name-num {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-right: 7px;
  letter-spacing: 0.06em;
}

.srv-wipe {
  font-size: 14px;
  color: var(--muted2);
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.srv-wipe svg {
  flex-shrink: 0;
  color: var(--accent2);
}

.srv-copy {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.srv-copy:hover {
  background: rgba(47, 116, 240, 0.25);
  border-color: rgba(47, 116, 240, 0.5);
}

.srv-copy svg {
  pointer-events: none;
  width: 12px;
  height: 12px;
  color: var(--muted2);
}

.srv-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.srv-pl-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.srv-pl-label svg {
  width: 12px;
  height: 12px;
}

.srv-pl-count {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.srv-pl-count span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

/* Полоса заполненности */
.srv-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
  display: flex;
}

.srv-bar-fill {
  height: 100%;
  border-radius: 100px 0 0 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-bar-joining {
  height: 100%;
  border-radius: 0 100px 100px 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Пульсирующий блик на joining-сегменте */
.srv-bar-joining::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: joiningPulse 1.5s ease-in-out infinite;
}

@keyframes joiningPulse {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50%      { opacity: 1; transform: translateX(100%); }
}

/* Если joining — единственный сегмент, скругляем слева тоже */
.srv-bar-fill[style*="width: 0"] + .srv-bar-joining,
.srv-bar-fill[style*="width:0"] + .srv-bar-joining {
  border-radius: 100px;
}

.fill-green  { background: linear-gradient(90deg, #15803d, #34d399); }
.fill-yellow { background: linear-gradient(90deg, #b45309, #fbbf24); }
.fill-red    { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* barSlide удалён — ширина управляется через JS мониторинга */

.srv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.srv-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
}

.srv-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   БАННЕР-СЛАЙДЕР
   ═══════════════════════════════════════════════ */
.banner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 40 / 9;
  background: var(--card);
  border: 1px solid var(--border);
  user-select: none;
  width: 100%;
  cursor: grab;
}

.banner:active {
  cursor: grabbing;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide img.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 6s ease;
  display: block;
}

.banner-slide.active img.banner-bg {
  transform: scale(1.04);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 36px 56px;
  pointer-events: none;
  z-index: 1;
}

.banner-overlay--discord {
  background: linear-gradient(90deg, rgba(4, 12, 30, 0.8) 0%, rgba(55, 65, 190, 0.15) 100%);
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
  width: fit-content;
}

.banner-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.banner-tag--discord {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.4);
  color: #a5b4fc;
}

.banner-title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.banner-actions {
  pointer-events: all;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

/* Точки навигации */
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}

.bdot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--accent2);
}


/* ═══════════════════════════════════════════════
   HERO-СЕКЦИЯ (Страницы серверов)
   ═══════════════════════════════════════════════ */
.hero-section {
  border-radius: 20px;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.4) 60%, transparent 100%);
  border-radius: 20px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-column {
  flex: 1;
  min-width: 280px;
}

.hero-content {
  padding: 20px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.hero_attribute {
  background: var(--accent);
  padding: 0 16px;
  border-radius: 16px;
  display: inline-block;
}

.hero-description {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-button {
  background-image: linear-gradient(180deg, #2563eb, #02339d);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: "Sofia Sans", sans-serif;
  cursor: pointer;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 28px;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgb(0 34 107);
  transition: 0.3s all;
  text-decoration: none;
  border: none;
  outline: none;
}

.hero-button:hover {
  background-image: linear-gradient(180deg, #3877ff, #02339d);
  box-shadow: 0 2px 0 rgb(0 34 107);
  transform: translateY(1px);
}

.hero-button--sm {
  font-size: 14px;
  padding: 11px 22px;
}

.hero-button-shop {
  background-image: linear-gradient(180deg, #9f25eb, #4d029d);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: "Sofia Sans", sans-serif;
  cursor: pointer;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 28px;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgb(57 0 107);
  transition: 0.3s all;
  text-decoration: none;
  border: none;
  outline: none;
}

.hero-button-shop:hover {
  background-image: linear-gradient(180deg, #c05aff, #4d029d);
  box-shadow: 0 2px 0 rgb(57 0 107);
  transform: translateY(1px);
}

/* Бейдж с информацией о вайпе на странице сервера */
.hero-wipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-wipe-badge svg {
  width: 13px;
  height: 13px;
  color: var(--accent2);
}


/* ═══════════════════════════════════════════════
   ПРЕИМУЩЕСТВА
   ═══════════════════════════════════════════════ */
.advantages-section {
  margin-top: 18px;
}

.advantages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.advantage-column {
  flex: 1;
  min-width: 240px;
  padding: 20px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.advantage-column:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.adv-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.adv-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent2);
}

.advantage-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
}

.advantage-description {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted2);
}


/* ═══════════════════════════════════════════════
   «КАК НАЧАТЬ ИГРАТЬ» — Шаги
   ═══════════════════════════════════════════════ */
.get-started-section {
  padding: 36px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-top: 18px;
}

.get-started-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.get-started-column {
  flex: 1;
  min-width: 280px;
  padding: 10px;
}

.get-started-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 28px;
  color: #fff;
  font-weight: 800;
  font-family: "Sofia Sans", sans-serif;
  text-transform: uppercase;
}

.step {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: left;
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-description {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.55;
}


/* ═══════════════════════════════════════════════
   СЕКЦИЯ «КАК ПОДКЛЮЧИТЬСЯ» (Home)
   ═══════════════════════════════════════════════ */
.htplay-section {
  padding: 22px 22px 18px;
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.htplay-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

.htplay-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.htplay-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.htplay-steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Карточка-шаг */
.htplay-step {
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.htplay-step:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
}

.htplay-step--final {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.2);
}

.htplay-step--final:hover {
  border-color: rgba(52, 211, 153, 0.45);
}

.htplay-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.htplay-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.htplay-step-icon--final {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.htplay-step-num {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  font-family: monospace;
  line-height: 1;
}

.htplay-step-num--final {
  color: rgba(52, 211, 153, 0.1);
}

.htplay-step-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.htplay-step-title--final {
  color: #34d399;
}

.htplay-step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 12px;
  font-family: monospace;
  color: #fff;
}

/* Ряд скачивания */
.htplay-dl-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.htplay-dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.htplay-dl-card--official {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.htplay-dl-card--official:hover {
  border-color: rgba(37, 99, 235, 0.65);
  background: rgba(37, 99, 235, 0.16);
}

.htplay-dl-card--pirate {
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.htplay-dl-card--pirate:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.htplay-dl-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 5px;
  padding: 2px 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.htplay-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  background-image: linear-gradient(180deg, #2f74f0, #1a4ac0);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgb(10 40 120);
  flex-shrink: 0;
}

.htplay-pirate-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.htplay-pirate-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   СЕКЦИЯ «СОЦИАЛЬНЫЕ СЕТИ»
   ═══════════════════════════════════════════════ */
.social-section {
  padding: 40px 20px;
  text-align: center;
  margin-top: 18px;
}

.social-title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}

.social-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.social-card {
  flex: 1;
  min-width: 180px;
  max-width: 230px;
  padding: 24px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
  cursor: pointer;
  text-decoration: none;
}

.social-card:hover {
  transform: translateY(-5px);
}

.social-card.discord_container {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.6) 0%, rgba(88, 101, 242, 0.1) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.social-card.telegram_container {
  background: linear-gradient(180deg, rgba(0, 136, 204, 0.6) 0%, rgba(0, 136, 204, 0.1) 100%);
  border: 1px solid rgba(0, 136, 204, 0.3);
}

.social-card.vk_container {
  background: linear-gradient(180deg, rgba(74, 118, 168, 0.6) 0%, rgba(74, 118, 168, 0.1) 100%);
  border: 1px solid rgba(74, 118, 168, 0.3);
}

.social-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}

.social-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-button {
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Sofia Sans", sans-serif;
  text-decoration: none;
  display: inline-block;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Секция новостей (домашняя страница) */
.news-section {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
}

.news-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.news-subtitle {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.news-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.news-card--discord {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.news-card--discord:hover {
  background: rgba(88, 101, 242, 0.16);
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-3px);
}

.news-card--telegram {
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.2);
}

.news-card--telegram:hover {
  background: rgba(0, 136, 204, 0.16);
  border-color: rgba(0, 136, 204, 0.4);
  transform: translateY(-3px);
}

.news-card--vk {
  background: rgba(74, 118, 168, 0.08);
  border: 1px solid rgba(74, 118, 168, 0.2);
}

.news-card--vk:hover {
  background: rgba(74, 118, 168, 0.16);
  border-color: rgba(74, 118, 168, 0.4);
  transform: translateY(-3px);
}

.news-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-avatar--discord {
  background: linear-gradient(135deg, #5865f2, #3b46c9);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.news-card-avatar--telegram {
  background: linear-gradient(135deg, #29b6f6, #0277bd);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}

.news-card-avatar--vk {
  background: linear-gradient(135deg, #5181b8, #2a5885);
  box-shadow: 0 4px 14px rgba(74, 118, 168, 0.4);
}

.news-card-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


/* ═══════════════════════════════════════════════
   СТРАНИЦЫ СТАТИСТИКИ И БАНОВ (заглушки)
   ═══════════════════════════════════════════════ */
.locked-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.locked-card {
  background: rgba(18, 32, 58, 0.97);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 20px;
  padding: 44px 52px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.locked-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.locked-desc {
  font-size: 13px;
  color: #a8bcd8;
  line-height: 1.6;
}

.locked-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.locked-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #475569, #334155);
  color: rgba(255, 255, 255, 0.5);
  border: none;
  outline: none;
  cursor: not-allowed;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 700;
  box-shadow: 0 3px 0 rgb(15 23 42);
}

.locked-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════
   ПРОФИЛЬ В ТОПБАРЕ (Авторизованный пользователь)
   ═══════════════════════════════════════════════ */

.topbar-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.topbar-user-wrap:hover {
  background: rgba(255, 255, 255, 0.05);
}

.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.topbar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.topbar-user-balance {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

/* Кнопка «Пополнить баланс» */
.topbar-deposit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--green);
  font-family: "Sofia Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.topbar-deposit-btn:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-1px);
}

.topbar-deposit-btn svg {
  flex-shrink: 0;
}

#topbar-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

#userDropdown {
  right: 0;
  min-width: 180px;
}


/* ═══════════════════════════════════════════════
   СТРАНИЦА СТАТИСТИКИ
   ═══════════════════════════════════════════════ */

/* Профиль игрока */
.stats-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stats-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.3);
}

.stats-profile-info {
  flex: 1;
  min-width: 0;
}

.stats-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-profile-steamid {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  letter-spacing: 0.02em;
  margin-top: 2px;
  text-decoration: none;
  transition: color 0.2s;
}

.stats-profile-steamid:hover {
  color: var(--accent2);
}

.stats-profile-actions {
  flex-shrink: 0;
}

/* Переключатель периода */
.stats-period-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 3px;
}

.stats-period-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted2);
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.stats-period-btn:hover {
  color: #fff;
}

.stats-period-btn.active {
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent2);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Карточки статистики */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.3s;
}

.stats-card:hover {
  border-color: rgba(106, 173, 255, 0.25);
  transform: translateY(-2px);
}

.stats-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stats-card-icon--kills {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--red);
}

.stats-card-icon--deaths {
  background: rgba(122, 144, 184, 0.12);
  border: 1px solid rgba(122, 144, 184, 0.25);
  color: var(--muted);
}

.stats-card-icon--kda {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
}

.stats-card-icon--hours {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--accent2);
}

.stats-card-val {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}

.stats-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Секция-карточка (bones, reports) */
.stats-section-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
}

.stats-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

/* Достижения */
.stats-achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.achievement:hover {
  transform: translateY(-2px);
}

.achievement--gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.achievement--gold:hover { border-color: rgba(251, 191, 36, 0.4); }

.achievement--red {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(248, 113, 113, 0.02));
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.achievement--red:hover { border-color: rgba(248, 113, 113, 0.4); }

.achievement--blue {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.02));
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.achievement--blue:hover { border-color: rgba(96, 165, 250, 0.4); }

.achievement--green {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.achievement--green:hover { border-color: rgba(52, 211, 153, 0.4); }

.achievement--purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02));
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.achievement--purple:hover { border-color: rgba(168, 85, 247, 0.4); }

.achievement-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-icon svg {
  width: 20px;
  height: 20px;
}

.achievement-icon--gold {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.achievement-icon--red {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.achievement-icon--blue {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.achievement-icon--green {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.achievement-icon--purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.achievement-info {
  flex: 1;
  min-width: 0;
}

.achievement-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.achievement-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .stats-achievements { grid-template-columns: 1fr; }
}

/* Попадания по частям тела */
.stats-bones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-bones-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
}

.stats-bone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-bone-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
  min-width: 100px;
}

.stats-bone-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.stats-bone-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-bone-bar--head {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.stats-bone-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 36px;
  text-align: right;
}

/* Жалобы */
.stats-reports {
  font-size: 15px;
  color: var(--muted2);
  font-weight: 500;
}

.stats-reports-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-right: 4px;
}

/* Загрузка */
.stats-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Адаптив */
@media (max-width: 820px) {
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .stats-profile { flex-wrap: wrap; }
  .stats-profile-actions { width: 100%; }
  .stats-period-tabs { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════
   БАНЛИСТ
   ═══════════════════════════════════════════════ */

/* Поиск */
.ban-search-row {
  display: flex;
  gap: 10px;
}

.ban-input {
  flex: 1;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.ban-input:focus {
  border-color: var(--accent);
}

.ban-input::placeholder {
  color: var(--muted);
}

/* Таблица */
.ban-table {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.ban-thead {
  display: grid;
  grid-template-columns: 2.2fr 2fr 1.4fr 1.4fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border2);
  background: var(--card2);
}

.ban-thead div {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Строка бана */
.banTableComponent {
  display: grid;
  grid-template-columns: 2.2fr 2fr 1.4fr 1.4fr;
  padding: 12px 20px;
  align-items: center;
  transition: background 0.15s;
}

.banTableComponent:hover {
  background: rgba(255, 255, 255, 0.025);
}

.banTableComponent + .banTableComponent {
  border-top: 1px solid var(--border2);
}

/* Инфо игрока */
.banUserInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.banUserAvatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card2);
}

.banUserDetails {
  min-width: 0;
}

.banUserNickname {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banUserSteamID {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  letter-spacing: 0.02em;
}

/* Текст в ячейках */
.banText {
  font-size: 13px;
  color: var(--muted2);
  font-weight: 500;
}

/* Загрузка */
.ban-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.ban-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Пустое состояние (ничего не найдено) */
#banComponent > div:only-child:not(.banTableComponent) {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Пагинация */
.ban-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ban-pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted2);
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.ban-pg-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.ban-pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ban-pg-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  min-width: 140px;
  text-align: center;
}

/* Адаптивность банлиста */
@media (max-width: 820px) {
  .ban-thead {
    grid-template-columns: 1fr 1fr;
  }
  .ban-thead div:nth-child(3),
  .ban-thead div:nth-child(4) {
    display: none;
  }
  .banTableComponent {
    grid-template-columns: 1fr 1fr;
  }
  .banTableComponent .banText:nth-child(3),
  .banTableComponent .banText:nth-child(4) {
    display: none;
  }
}


/* ═══════════════════════════════════════════════
   ЮРИДИЧЕСКИЕ / ПРАВИЛА — Документы
   ═══════════════════════════════════════════════ */
.doc-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 40px;
}

/* Шапка документа */
.doc-hero {
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
}

.doc-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.doc-hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Секции документа */
.doc-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  transition: background 0.15s;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
  cursor: default;
}

.doc-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: monospace;
  color: var(--accent2);
  flex-shrink: 0;
}

.doc-section-badge--warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--yellow);
}

.doc-section-info {
  flex: 1;
}

.doc-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.doc-section-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Список пунктов */
.doc-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
}

.doc-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.12s;
}

.doc-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.doc-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.doc-item-num {
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  color: var(--muted);
  letter-spacing: 0.03em;
  min-width: 46px;
  padding-top: 3px;
  flex-shrink: 0;
}

.doc-item-text {
  font-size: 15px;
  color: rgba(240, 244, 255, 0.88);
  line-height: 1.72;
  flex: 1;
}

.doc-item-text a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Блок наказания */
.doc-punishment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  margin-left: 60px;
  padding: 8px 14px;
  background: rgba(248, 113, 113, 0.06);
  border-left: 2px solid rgba(248, 113, 113, 0.5);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.6;
}

.doc-punishment svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f87171;
}

/* Примечание */
.doc-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 6px;
  background: rgba(251, 191, 36, 0.05);
  border-left: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.65;
  font-style: italic;
}

.doc-note b {
  color: var(--yellow);
  font-style: normal;
}

.doc-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--yellow);
}

/* Цветовые варианты пунктов */
.doc-item.danger .doc-item-num { color: rgba(248, 113, 113, 0.75); }
.doc-item.danger              { background: rgba(248, 113, 113, 0.025); }
.doc-item.warn .doc-item-num  { color: rgba(251, 191, 36, 0.75); }
.doc-item.ok .doc-item-num    { color: rgba(52, 211, 153, 0.75); }
.doc-item.ok .doc-item-text   { color: #a7f3d0; }
.doc-item.solo .doc-item-text { color: var(--muted2); }

.doc-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), transparent);
  margin: 4px 0 0;
}

/* Контактные строки */
.doc-contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-contact-row:last-child {
  border-bottom: none;
}

.doc-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  flex-shrink: 0;
}

.doc-contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}

.doc-contact-val {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.doc-contact-val a {
  color: var(--accent2);
  text-decoration: none;
}

.doc-contact-val a:hover {
  text-decoration: underline;
}

/* Реквизиты */
.doc-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 0 16px;
}

.doc-req-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.doc-req-item--full {
  grid-column: 1 / -1;
}

.doc-req-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 5px;
}

.doc-req-val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.doc-req-val--mono {
  font-family: monospace;
  letter-spacing: 0.04em;
}

/* Апелляция */
.doc-appeal {
  margin-top: 8px;
  padding: 16px 20px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
}

.doc-appeal b {
  color: #fff;
}


/* ═══════════════════════════════════════════════
   СТАТИСТИКА (Страница) — заготовки
   ═══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent);
}

.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-card-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.stat-card-val span {
  font-size: 16px;
  color: var(--accent2);
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-card-delta {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-up   { color: var(--green); }
.delta-down { color: var(--red); }


/* ═══════════════════════════════════════════════
   БАННЕР DISCORD (слайд)
   ═══════════════════════════════════════════════ */
.discord-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.discord-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted2);
}

.discord-stat-val {
  color: #fff;
  font-weight: 800;
}

.discord-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  flex-shrink: 0;
}

.discord-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #5865f2, #3b46c9);
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(30, 40, 140, 0.8);
  transition: all 0.25s;
}

.discord-join-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   ФУТЕР (Footer)
   ═══════════════════════════════════════════════ */
footer {
  padding: 0 24px 16px;
  margin-top: auto;
}

.footer-inner {
  background: rgba(12, 22, 44, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 14px;
  overflow: hidden;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  gap: 20px;
  width: 100%;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  image-rendering: high-quality;
}

.footer-links-block {
  display: flex;
  gap: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
  font-weight: 500;
}

.footer-link:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-socials {
  display: flex;
  gap: 7px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
  overflow: hidden;
}

.social-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.social-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-made {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  line-height: 1.6;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-copy {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.footer-disclaimer {
  font-size: 11px;
  color: #475569;
  max-width: 500px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 28px;
  font-size: 10px;
  color: #475569;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════
   COOKIE-БАННЕР
   ═══════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(18, 32, 58, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted2);
  max-width: 460px;
  width: calc(100% - 48px);
}

#cookie-banner.show {
  display: flex;
  animation: cookieIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cookie-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.cookie-link {
  color: var(--accent2);
  cursor: pointer;
  text-decoration: underline;
}

#cookie-banner .cookie-ok {
  background-image: linear-gradient(180deg, #2f74f0, #1a4ac0);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 9px 24px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgb(10 40 120);
  transition: all 0.2s;
  align-self: flex-start;
}

#cookie-banner .cookie-ok:hover {
  background-image: linear-gradient(180deg, #4d8fff, #1a4ac0);
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes cookieOut {
  to { opacity: 0; transform: translateX(-50%) translateY(16px); }
}


/* ═══════════════════════════════════════════════
   КНОПКА «НАВЕРХ»
   ═══════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 7000;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(18, 32, 58, 0.92);
  backdrop-filter: blur(12px);
  color: var(--accent2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.15s, border-color 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.55);
}

#back-to-top svg {
  width: 22px;
  height: 22px;
}


/* ═══════════════════════════════════════════════
   СТРАНИЦА МАГАЗИНА (стиль GameStores)
   ═══════════════════════════════════════════════ */

/* ── Layout: sidebar + main ── */
.gs-shop-layout {
  max-width: 1280px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.gs-sidebar {
  min-width: 264px;
  max-width: 264px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 100px;
  padding-top: 30px;
}

.gs-shop-main {
  flex: 1;
  min-width: 0;
  margin-bottom: 50px;
  padding-top: 30px;
}

/* ── Виджет промокода (без ввода, подарок на углу) ── */
.gs-promo-widget {
  background: var(--card);
  border-radius: 15px;
  padding: 20px 15px 15px;
  text-align: center;
  box-shadow: 0px 5px 0 rgb(13 18 35);
  position: relative;
  overflow: visible;
}

.gs-promo-gift-img {
  position: absolute;
  top: -20px;
  left: -10px;
  width: 65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(106, 161, 255, 0.35));
  animation: gs-gift-float 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes gs-gift-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-5px) rotate(0deg); }
}

.gs-promo-title {
  font-size: 16px;
  font-weight: 700;
  font-family: "Sofia Sans", sans-serif;
  color: #fff;
  margin-bottom: 2px;
  margin-top: 8px;
}

.gs-promo-subtitle {
  font-size: 13px;
  font-weight: 400;
  font-family: "Sofia Sans", sans-serif;
  color: rgb(169 190 243);
  margin-bottom: 12px;
}

.gs-promo-code {
  font-size: 16px;
  font-weight: 700;
  font-family: "Sofia Sans", sans-serif;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 8px;
  background: linear-gradient(17deg, rgb(23 33 59) 60%, rgb(36 52 93));
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: all;
  transition: border-color 0.2s;
  border: 1px solid transparent;
}

.gs-promo-code:hover {
  border-color: rgba(106, 161, 255, 0.3);
}

.gs-promo-code:active {
  border-color: var(--accent);
}

.gs-promo-code::before {
  content: '';
  width: 100%;
  height: 200%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
  filter: blur(10px);
  background: linear-gradient(to left, transparent 0%, #fff 30%, #fff 60%, transparent 100%);
  transform: translate(-100%, -25%) rotate(10deg);
  animation: gs-blick 4s infinite;
}

@keyframes gs-blick {
  0% { transform: translate(-100%, -25%) rotate(10deg); }
  20% { transform: translate(100%, -25%) rotate(10deg); }
  100% { transform: translate(100%, -25%) rotate(10deg); }
}

.gs-promo-auth {
  font-size: 13px;
  font-weight: 300;
  font-family: "Sofia Sans", sans-serif;
  color: rgb(169 190 243);
  margin-top: 5px;
}

/* ── Шапка магазина + дрон ── */
.gs-shop-header {
  padding: 20px 24px;
  background: var(--card);
  border-radius: 15px;
  position: relative;
  overflow: visible;
  min-height: 65px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.gs-shop-title {
  font-size: 18px;
  font-weight: 700;
  font-family: "Sofia Sans", sans-serif;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.03em;
}

.gs-shop-desc {
  font-size: 13px;
  font-weight: 400;
  font-family: "Sofia Sans", sans-serif;
  color: var(--muted);
  margin-top: 3px;
}

.gs-shop-drone {
  position: absolute;
  top: -55px;
  right: 10px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  pointer-events: none;
  animation: gs-drone-float 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes gs-drone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Серверы ── */
.gs-servers {
  background: rgb(12 19 35);
  border-radius: 15px;
  border: 1px solid var(--border);
  padding: 5px;
  box-shadow: inset 0 0 9px 3px rgb(9 15 30);
  margin-bottom: 20px;
}

.gs-servers-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px;
}

.gs-server-btn {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  background-image: linear-gradient(180deg, #14223d, #0d1729);
  color: rgb(111 133 179);
  font-weight: 600;
  font-size: 16px;
  font-family: "Sofia Sans", sans-serif;
  line-height: 15px;
  text-transform: none;
  cursor: pointer;
  border-radius: 15px;
  border: none;
  padding: 13px 18px;
  box-shadow: 0px 3px 0 rgb(14 25 49);
  transition: 0.3s all;
}

.gs-server-btn.active,
.gs-server-btn:hover {
  background-image: linear-gradient(180deg, #2563eb, #02339d);
  color: rgb(255 255 255);
  box-shadow: 0px 3px 0 rgb(0 34 107);
}

/* ── Предупреждение ── */
.shop-server-warn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
}

.shop-server-warn svg { flex-shrink: 0; }

/* ── Категории с картинками ── */
.gs-categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  margin-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

.gs-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #b2c8ff;
  background-color: transparent;
  border: 1px solid #17213b;
  padding: 10px 15px;
  border-radius: 15px;
  margin-right: 5px;
  transition: all .15s ease;
  font-weight: 600;
  font-size: 14px;
  font-family: "Sofia Sans", sans-serif;
  line-height: 15px;
  white-space: nowrap;
}

.gs-cat:hover {
  background-color: #22335d;
  border-color: #293d6f;
  color: #fff;
}

.gs-cat.active {
  background-color: #22335d;
  border-color: #293d6f;
  color: #fff;
}

.gs-cat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
}

.gs-cat.active .gs-cat-icon,
.gs-cat:hover .gs-cat-icon {
  opacity: 1;
}

/* ── Поиск ── */
.gs-search {
  width: 100%;
  display: flex;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #17213b;
  margin-bottom: 25px;
}

.gs-search-icon {
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-search-input {
  font-size: 14px;
  width: 100%;
  padding: 0 10px;
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  background: transparent;
  border: none;
  outline: none;
}

.gs-search-input::placeholder { color: #475883; }

/* ── Акция x2 — кнопка навигации ── */

/* ── Модалка пополнения ── */
.deposit-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deposit-preset {
  padding: 12px 8px;
  border-radius: 12px;
  background: rgb(12 19 35);
  border: 1px solid var(--border);
  color: var(--muted2);
  font-family: "Sofia Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.deposit-preset:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #fff;
  background: rgba(37, 99, 235, 0.08);
}

.deposit-preset.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

.deposit-x2-badge {
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(147, 51, 234, 0.3);
  color: #c084fc;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  animation: x2-border-pulse 2s ease-in-out infinite;
}

.deposit-preview {
  margin-top: 14px;
}

.deposit-breakdown {
  background: rgb(12 19 35);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.deposit-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
}

.deposit-row:last-child {
  border-bottom: none;
}

.deposit-row--bonus {
  color: var(--green);
}

.deposit-row--x2 {
  color: #c084fc;
}

.deposit-row--total {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.06);
}

.tnav-x2 {
  position: relative;
  border-color: rgba(147, 51, 234, 0.4) !important;
  background: rgba(147, 51, 234, 0.08) !important;
}

.x2-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
  animation: x2-pulse 1.5s ease-in-out infinite;
}

@keyframes x2-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ── Акция x2 — баннер в магазине ── */
.gs-x2-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 15px;
  margin-bottom: 15px;
  animation: x2-border-pulse 2s ease-in-out infinite;
}

@keyframes x2-border-pulse {
  0%, 100% { border-color: rgba(147, 51, 234, 0.3); }
  50% { border-color: rgba(147, 51, 234, 0.55); }
}

.gs-x2-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.4));
}

.gs-x2-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
}

.gs-x2-desc {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
  font-family: "Sofia Sans", sans-serif;
}

/* ── Подложка под товары ── */
.gs-products-wrap {
  background: rgb(12 19 35);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px;
  box-shadow: inset 0 0 6px 2px rgb(9 15 30);
  margin-top: 0;
}

/* ── Сетка товаров ── */
.gs-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* ── Карточка товара (стиль GameStores) ── */
.gs-product {
  background-image: linear-gradient(180deg, #0f1b33 60%, #162541);
  position: relative;
  padding: 20px;
  cursor: pointer;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgb(24 38 70);
  transition: 0.15s all;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gs-product-in .15s ease;
}

@keyframes gs-product-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.gs-product:hover {
  transform: scale(1.02);
  background-image: linear-gradient(180deg, #182646 60%, #162541);
  border-color: transparent;
}

/* ── Картинка товара (приподнята) ── */
.gs-product-img {
  position: relative;
  top: -30px;
  object-fit: contain;
  width: 100%;
  transform: scale(0.8);
  aspect-ratio: 1 / 1;
  margin-bottom: -30px;
  pointer-events: none;
}

/* ── Название ── */
.gs-product-name {
  z-index: 6;
  width: 100%;
  text-align: start;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* ── Нижняя часть ── */
.gs-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* ── Цена (бейдж как на GameStores) ── */
.gs-product-price {
  background-image: linear-gradient(180deg, #2563eb, #02339d);
  padding: 5px 10px;
  font-size: 13px;
  line-height: 16px;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 500;
  color: #ffffff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gs-product-old-price {
  font-size: 11px;
  opacity: 0.8;
  text-decoration: line-through;
  margin-right: 2px;
}

.gs-product-count {
  font-size: 14px;
  font-weight: 600;
  color: #97a9d5;
  font-family: "Sofia Sans", sans-serif;
}

/* ── Скидка ── */
.gs-product-discount {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
  background-color: #ef4444;
  color: #fff;
  padding: 5px 10px;
  font-family: "Sofia Sans", sans-serif;
  font-weight: 700;
  font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgb(255 156 156 / 45%);
}

/* ── Баннер глобальной скидки ── */
.gs-discount-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 15px;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 500;
  font-family: "Sofia Sans", sans-serif;
  margin-bottom: 15px;
  animation: gs-discount-pulse 2s ease-in-out infinite;
}

.gs-discount-banner svg { color: #ef4444; flex-shrink: 0; }
.gs-discount-banner b { color: #fff; }

@keyframes gs-discount-pulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.25); }
  50% { border-color: rgba(239, 68, 68, 0.45); }
}

/* ── Инфо скидки в модалке ── */
.smodal-discount-info {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  font-family: "Sofia Sans", sans-serif;
  margin-top: 4px;
}

/* ── Пустое состояние ── */
.gs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b839f;
  font-size: 14px;
  font-family: "Sofia Sans", sans-serif;
}

/* ── Адаптивность магазина ── */
@media (max-width: 960px) {
  .gs-shop-layout { flex-direction: column; }
  .gs-sidebar { min-width: 100%; max-width: 100%; position: static; margin-bottom: 0; }
}

@media (max-width: 820px) {
  .gs-server-btn { min-width: 140px; font-size: 14px; padding: 10px 14px; }
}

@media (max-width: 500px) {
  .gs-shop-layout { padding: 0 10px; }
  .gs-products { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 5px; }
  .gs-product { padding: 15px; }
  .gs-product-img { top: -8px; transform: scale(1.0); margin-bottom: -8px; }
  .gs-product-name { font-size: 13px; }
  .gs-shop-header { padding: 10px; }
  .gs-server-btn { min-width: 120px; font-size: 13px; padding: 10px 12px; }
  .gs-shop-drone { width: 80px; height: 80px; top: -35px; right: 5px; }
  .gs-promo-gift-img { width: 50px; height: 50px; top: -15px; left: -5px; }
}

/* ═══════════════════════════════════════════════
   МОДАЛКА ТОВАРА
   ═══════════════════════════════════════════════ */

.shop-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.shop-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.shop-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(170deg, rgba(14, 26, 48, 0.98) 0%, rgba(8, 18, 38, 0.99) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(106, 173, 255, 0.06);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-modal-overlay.active .shop-modal {
  transform: translateY(0) scale(1);
}

.shop-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.7);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.shop-modal-close:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(47, 116, 240, 0.15);
}

.shop-modal-close svg {
  width: 16px;
  height: 16px;
}

.shop-modal-inner {
  padding: 28px;
}

/* ── Верхняя часть модалки ── */
.shop-modal-top {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
}

.shop-modal-img-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.shop-modal-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.shop-modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Секции модалки ── */
.shop-modal-section {
  margin-bottom: 20px;
}

.shop-modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ── Состав (features) ── */
.shop-modal-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-modal-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
}

.shop-modal-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: var(--green);
  flex-shrink: 0;
}

.shop-modal-feature-icon svg {
  width: 14px;
  height: 14px;
}

/* ── Выбор периода ── */
.shop-modal-periods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.shop-modal-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border);
  color: var(--muted2);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.shop-modal-period:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(47, 116, 240, 0.08);
}

.shop-modal-period.active {
  border-color: var(--accent2);
  background: rgba(47, 116, 240, 0.15);
  box-shadow: 0 0 16px rgba(47, 116, 240, 0.15);
}

.shop-modal-period-days {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.shop-modal-period.active .shop-modal-period-days {
  color: var(--accent2);
}

.shop-modal-period-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.shop-modal-period.active .shop-modal-period-price {
  color: var(--accent2);
}

/* ── Футер модалки ── */
.shop-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.shop-modal-price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
}

.shop-modal-price-value--free {
  color: var(--accent2);
}

.shop-modal-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #1a6bef 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(47, 116, 240, 0.3);
}

.shop-modal-buy:hover {
  background: linear-gradient(135deg, #1a6bef 0%, #1258d0 100%);
  box-shadow: 0 6px 24px rgba(47, 116, 240, 0.45);
  transform: translateY(-1px);
}

.shop-modal-buy:active {
  transform: translateY(0);
}

/* ── Адаптив модалки ── */
@media (max-width: 500px) {
  .shop-modal-inner { padding: 20px; }
  .shop-modal-top { flex-direction: column; align-items: center; text-align: center; }
  .shop-modal-img-wrap { width: 100px; height: 100px; }
  .shop-modal-name { font-size: 18px; }
  .shop-modal-periods { grid-template-columns: 1fr 1fr; }
  .shop-modal-footer { flex-direction: column; text-align: center; }
  .shop-modal-buy { width: 100%; justify-content: center; }
}

/* ── Скроллбар модалки ── */
.shop-modal::-webkit-scrollbar {
  width: 6px;
}
.shop-modal::-webkit-scrollbar-track {
  background: transparent;
}
.shop-modal::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.2);
  border-radius: 3px;
}
.shop-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.35);
}


/* ═══════════════════════════════════════════════
   СТРАНИЦА ПРОФИЛЯ
   ═══════════════════════════════════════════════ */

/* ── Шапка профиля ── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-steamid {
  font-size: 13px;
  font-family: monospace;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}

.profile-steamid:hover {
  color: var(--accent2);
}

/* ── Табы ── */
.profile-tabs {
  display: flex;
  gap: 4px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "Sofia Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.profile-tab:hover {
  color: var(--muted2);
  background: rgba(96, 165, 250, 0.06);
}

.profile-tab.active {
  color: #fff;
  background: rgba(47, 116, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.profile-tab svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.profile-tab.active svg {
  opacity: 1;
  color: var(--accent2);
}

/* ── Контент вкладок ── */
.profile-tab-content {
  display: none;
  animation: profileFadeIn 0.3s ease;
}

.profile-tab-content.active {
  display: block;
}

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

/* ── Секция ── */
.profile-section {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 14px;
}

.profile-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

/* ── Сетка информации ── */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-info-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.profile-info-card:hover {
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-2px);
}

.profile-info-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* SteamID — кликабельная ссылка */
.profile-steamid-link {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}

.profile-steamid-link:hover {
  color: var(--accent2);
}

/* ── Промокод ── */
.profile-promo-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-promo-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Сообщение результата промокода ── */
.profile-promo-result {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.profile-promo-result.success {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
}

.profile-promo-result.error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--red);
}

/* ── Достижения профиля: пустое состояние ── */
.profile-achievements-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.profile-achievements-empty svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.profile-achievements-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted2);
}

.profile-achievements-empty-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}

/* ── Баланс: визуальный блок ── */
.profile-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-balance-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Пустые состояния (История, Корзина) ── */
.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px 40px;
  text-align: center;
}

.profile-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-empty-icon svg {
  width: 26px;
  height: 26px;
  color: var(--muted);
  opacity: 0.5;
}

.profile-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--muted2);
}

.profile-empty-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.5;
}

/* ── Адаптивность профиля ── */
@media (max-width: 820px) {
  .profile-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-header {
    flex-wrap: wrap;
  }
  .profile-avatar {
    width: 56px;
    height: 56px;
  }
  .profile-name {
    font-size: 18px;
  }
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 500px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-promo-row {
    flex-direction: column;
  }
  .profile-promo-row .ban-input {
    width: 100%;
  }
  .profile-promo-row .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════
   АНИМАЦИИ ЧИСЕЛ
   ═══════════════════════════════════════════════ */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.num-anim {
  display: inline-block;
  animation: countUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}


/* ═══════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .srv-grid       { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .news-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .wrapper                                   { flex-direction: column; }
  .topbar-nav .tnav-item:not(:nth-child(-n+3)) { display: none; }
  .srv-grid                                  { grid-template-columns: 1fr; }
  .stats-row                                 { grid-template-columns: 1fr; }
  .hero-section                              { min-height: 340px; }
  .footer-main                               { flex-wrap: wrap; }
  .htplay-steps-row                          { grid-template-columns: 1fr !important; }
  .htplay-dl-grid                            { grid-template-columns: 1fr !important; }
  .news-grid                                 { grid-template-columns: 1fr; }
  .doc-req-grid                              { grid-template-columns: 1fr; }
  .topbar-deposit-btn                        { display: none; }
}


/* ═══════════════════════════════════════════════
   АДМИНКА
   ═══════════════════════════════════════════════ */

/* ── Шапка ── */
.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.adm-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent2);
}

.adm-header-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.adm-header-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.adm-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ── Табы ── */
.adm-tabs {
  display: flex;
  gap: 4px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.adm-tab svg { flex-shrink: 0; opacity: 0.7; }

.adm-tab:hover {
  color: var(--muted2);
  background: rgba(96, 165, 250, 0.06);
}

.adm-tab.active {
  color: #fff;
  background: rgba(47, 116, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.adm-tab.active svg { opacity: 1; }

/* ── Контент табов ── */
.adm-content {
  display: none;
}

.adm-content.active {
  display: block;
}

/* ── Карточки статистики ── */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.adm-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.adm-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.adm-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.adm-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Карточка-контейнер ── */
.adm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(12px);
}

.adm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.adm-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.adm-card-top .adm-card-title {
  margin-bottom: 0;
}

/* ── Поиск ── */
.adm-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--muted);
}

.adm-search {
  background: transparent;
  border: none;
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  outline: none;
  width: 220px;
}

.adm-search::placeholder { color: var(--muted); }

/* ── Таблица ── */
.adm-table-wrap { overflow-x: auto; }

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.adm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.06);
  color: var(--muted2);
  white-space: nowrap;
}

.adm-table tbody tr:hover {
  background: rgba(96, 165, 250, 0.04);
}

.adm-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-user-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.adm-mono {
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.adm-muted { color: var(--muted); font-size: 12px; }

/* ── Кнопки ── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.5);
  color: var(--muted2);
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.adm-btn:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: #fff;
}

.adm-btn--accent {
  background: rgba(47, 116, 240, 0.15);
  border-color: rgba(96, 165, 250, 0.25);
  color: var(--accent2);
}

.adm-btn--accent:hover {
  background: rgba(47, 116, 240, 0.3);
}

.adm-btn--green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.adm-btn--green:hover {
  background: rgba(52, 211, 153, 0.2);
}

.adm-btn--red {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.2);
  color: var(--red);
}

.adm-btn--red:hover {
  background: rgba(248, 113, 113, 0.18);
}

.adm-btn--sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* ── Пагинация ── */
.adm-pager {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  justify-content: center;
}

.adm-pager-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.adm-pager-btn:hover { border-color: rgba(96, 165, 250, 0.35); color: #fff; }
.adm-pager-btn.active { background: rgba(47, 116, 240, 0.18); color: #fff; border-color: rgba(96, 165, 250, 0.3); }

/* ── Лог ── */
.adm-log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  transition: background 0.15s;
  flex-wrap: wrap;
}

.adm-log-row:hover { background: rgba(96, 165, 250, 0.04); }

.adm-log-time { color: var(--muted); min-width: 90px; font-variant-numeric: tabular-nums; }
.adm-log-action { color: var(--accent2); font-weight: 700; min-width: 110px; }
.adm-log-admin { color: var(--muted2); min-width: 100px; }
.adm-log-target { color: var(--yellow); min-width: 100px; font-family: monospace; font-size: 11px; }
.adm-log-detail { color: var(--muted); flex: 1; font-size: 11px; }

/* ── Формы ── */
.adm-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.6);
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.adm-input:focus { border-color: var(--accent2); }
.adm-input::placeholder { color: var(--muted); }

select.adm-input { cursor: pointer; }
select.adm-input option { background: var(--bg2); color: #fff; }

.adm-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adm-input-row .adm-input { flex: 1; }

/* ── Модалка админки ── */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.adm-modal-overlay.active { opacity: 1; pointer-events: auto; }

.adm-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(18, 32, 58, 0.97) 0%, rgba(10, 22, 44, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-modal-overlay.active .adm-modal { transform: translateY(0) scale(1); }

.adm-modal-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.adm-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.adm-modal-av {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.adm-modal::-webkit-scrollbar { width: 6px; }
.adm-modal::-webkit-scrollbar-track { background: transparent; }
.adm-modal::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.2); border-radius: 3px; }

/* ── Товары в админке ── */
.adm-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.15s;
}

.adm-product-row:hover { background: rgba(96, 165, 250, 0.04); }

.adm-product-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(10, 22, 40, 0.5);
  flex-shrink: 0;
}

.adm-product-info { flex: 1; min-width: 0; }

/* ── Toggle ── */
.adm-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.adm-toggle input { opacity: 0; width: 0; height: 0; }

.adm-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: 0.25s;
}

.adm-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--muted);
  border-radius: 50%;
  transition: 0.25s;
}

.adm-toggle input:checked + .adm-toggle-slider {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.35);
}

.adm-toggle input:checked + .adm-toggle-slider::before {
  transform: translateX(18px);
  background: var(--green);
}

/* ── Скидки ── */
.adm-discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.15s;
}

.adm-discount-row:hover { background: rgba(96, 165, 250, 0.04); }

/* ── Пустое состояние ── */
.adm-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Кнопка админки в меню ── */
.dd-item--admin {
  color: var(--red) !important;
}

.dd-item--admin svg {
  color: var(--red);
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .adm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .adm-stats-grid { grid-template-columns: 1fr; }
  .adm-card { padding: 16px; }
  .adm-modal { padding: 20px; }
  .adm-search { width: 150px; }
  .adm-input-row { flex-wrap: wrap; }
}

/* ── Таблица профиля (история/корзина) ── */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.profile-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.profile-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.06);
  color: var(--muted2);
}

.profile-table tbody tr:hover {
  background: rgba(96, 165, 250, 0.04);
}

.profile-history-filters,
.profile-cart-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.profile-cart-servers {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.profile-cart-servers .gs-server-btn {
  flex: none;
  min-width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

.adm-pager-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   МОДАЛКА ТОВАРА (новый дизайн)
   ═══════════════════════════════════════════════ */

.smodal-top {
  display: flex;
  gap: 22px;
}

.smodal-img {
  flex-shrink: 0;
  width: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.6);
  aspect-ratio: 1;
}

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

.smodal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.smodal-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.smodal-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.smodal-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent2);
}

.smodal-price-old {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
}

.smodal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Секции ── */
.smodal-section {
  margin-top: 20px;
}

.smodal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ── Список фич/состава ── */
.smodal-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smodal-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
}

.smodal-feature svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ── Количество ── */
.smodal-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.smodal-qty-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.5);
  border: none;
  color: var(--muted2);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Sofia Sans", sans-serif;
}

.smodal-qty-btn:hover {
  background: rgba(47, 116, 240, 0.12);
  color: #fff;
}

.smodal-qty-val {
  width: 50px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: "Sofia Sans", sans-serif;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Кнопка покупки ── */
.smodal-buy {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #1a6bef 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #fff;
  font-family: "Sofia Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  box-shadow: 0 4px 20px rgba(47, 116, 240, 0.3);
}

.smodal-buy:hover {
  background: linear-gradient(135deg, #1a6bef 0%, #1258d0 100%);
  box-shadow: 0 6px 28px rgba(47, 116, 240, 0.45);
  transform: translateY(-1px);
}

.smodal-buy:active {
  transform: translateY(0);
}

.smodal-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Адаптив модалки ── */
@media (max-width: 560px) {
  .smodal-top { flex-direction: column; align-items: center; text-align: center; }
  .smodal-img { width: 160px; }
  .smodal-price-line { justify-content: center; }
  .smodal-name { font-size: 20px; }
}