/* hotrust — GGRUST-style theme */
:root {
  --bg-base: #0a0b0d;
  --bg-panel: #111318;
  --bg-card: #181b22;
  --bg-card-hover: #1f2430;
  --bg-input: #0f1116;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --text-secondary: #9aa3b5;
  --text-muted: #6b7385;
  --accent: #7a9e3a;
  --accent-hover: #8fb84a;
  --accent-dim: rgba(122, 158, 58, 0.15);
  --promo: #e8a317;
  --promo-dim: rgba(232, 163, 23, 0.12);
  --danger: #e03e3e;
  --success: #3dba5f;
  --orange: #e8620a;
  --radius: 0;
  --radius-sm: 0;
  --header-h: 72px;
  --sidebar-w: 320px;
  --font: 'Exo 2', system-ui, sans-serif;
  --font-display: 'Rajdhani', sans-serif;
  /* Rajdhani без кириллицы — кнопки и подписи с RU/смешанным текстом */
  --font-ui: var(--font);
  --scrollbar-size: 5px;
  --scrollbar-track: var(--bg-base);
  --scrollbar-thumb: rgba(255, 255, 255, 0.12);
  --scrollbar-thumb-hover: rgba(232, 98, 10, 0.55);
  --scrollbar-thumb-active: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }

.hotrust-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.hotrust-scrollbar::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
.hotrust-scrollbar::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.hotrust-scrollbar::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: none;
  border-radius: 0;
}
.hotrust-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover) 0%, var(--orange) 100%);
}
.hotrust-scrollbar::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}
.hotrust-scrollbar::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
html::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 0;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
html::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}
html::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body,
.site-body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
}
.site-body {
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ─── Появление блоков при прокрутке ─── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(10, 11, 13, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1;
  margin-left: -2px;
}
.logo span.accent,
.logo-text .accent { color: var(--orange); }

.logo-hot {
  display: inline-block;
  background: linear-gradient(to top, var(--orange) 50%, var(--text) 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-hot {
  background-position: 0 100%;
}

.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.header-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.header-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--bg-panel);
}
.header-icon-badge[hidden] { display: none; }

.header-cart-wrap,
.header-notif-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-cart-panel .header-cart-hint {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  border-bottom: none;
}
.header-cart-panel .header-cart-hint strong {
  color: var(--accent);
  font-weight: 600;
}

.header-cart-profile-link {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.header-cart-profile-link:hover {
  color: var(--orange);
}

.header-cart-list {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px 8px 8px;
  scrollbar-gutter: stable;
  max-height: min(360px, 58vh);
}

.header-cart-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.header-cart-item:last-child { margin-bottom: 0; }

.header-cart-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.header-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-cart-emoji {
  font-size: 22px;
  line-height: 1;
}

.header-cart-body {
  flex: 1;
  min-width: 0;
}

.header-cart-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.header-cart-tag {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.header-cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.header-cart-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.header-cart-refund {
  padding: 4px 10px;
  font-size: 11px;
}

.header-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.header-notif-panel[hidden] { display: none !important; }

.header-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.header-notif-hide-all {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}
.header-notif-hide-all:hover { color: var(--orange); }

.header-notif-list {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px 8px 8px;
  scrollbar-gutter: stable;
}
.header-notif-list::-webkit-scrollbar-track {
  background: transparent;
  border-left: none;
  margin: 4px 0;
}
.header-notif-list::-webkit-scrollbar-thumb {
  border-color: var(--bg-card);
}

.header-notif-empty {
  margin: 16px 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.header-notif-item {
  padding: 10px 10px 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.header-notif-item:last-child { margin-bottom: 0; }

.header-notif-item-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.header-notif-type {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}
.header-notif-type-news { background: var(--promo); }
.header-notif-type-purchase { background: var(--orange); }
.header-notif-type-topup { background: var(--success); }
.header-notif-type-admin { background: var(--text-secondary); }
.header-notif-type-bonus { background: var(--promo); }
.header-notif-type-transfer { background: #5b8fd4; }
.header-notif-type-refund { background: var(--accent); }

.header-notif-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.header-notif-dismiss {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.header-notif-dismiss:hover { color: var(--danger); background: rgba(255, 80, 80, 0.12); }

.header-notif-body {
  margin: 6px 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.header-notif-link {
  display: inline-block;
  margin: 6px 0 0 16px;
  font-size: 12px;
  color: var(--orange);
}
.header-notif-link:hover { text-decoration: underline; }

.header-notif-time {
  display: block;
  margin: 6px 0 0 16px;
  font-size: 11px;
  color: var(--text-muted);
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--promo);
  background: var(--promo-dim);
  border: 1px solid rgba(232, 163, 23, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-promo:hover { background: rgba(232, 163, 23, 0.22); color: #ffc040; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.site-nav a,
.site-nav-btn {
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
}
.site-nav a:hover,
.site-nav-btn:hover {
  color: var(--text);
  background: transparent;
}
.site-nav a.active,
.site-nav-btn.active {
  color: #fff;
  background: transparent;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}
.header-social-btn:hover {
  color: var(--text);
  background: transparent;
}
.header-social-btn .footer-social-svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.header-social-btn:hover .footer-social-svg {
  opacity: 1;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
}
.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 6px 8px 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-balance > span {
  color: var(--text-secondary);
  line-height: 1;
}
.header-balance strong {
  color: var(--text);
  font-weight: 600;
  line-height: 1;
}
.btn-topup {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
}
.btn-topup-icon {
  display: block;
  flex-shrink: 0;
}
.btn-topup:hover { background: var(--accent-hover); color: #fff; }

.icon-steam {
  flex-shrink: 0;
  display: block;
  color: currentColor;
}
.btn-steam-login {
  gap: 10px;
}
.header-user .btn-steam-login {
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 13px;
}
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(180deg, #5a7a2e 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-steam:hover { color: #fff; filter: brightness(1.08); }

.header-avatar-btn {
  padding: 0;
  overflow: hidden;
  color: var(--text);
}
.header-avatar-btn img {
  width: 40px;
  height: 40px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  vertical-align: top;
}
.header-avatar-btn .avatar-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

/* ─── Server tabs ─── */
.server-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.server-tab {
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.server-tab:hover { color: var(--text-secondary); }
.server-tab.active {
  color: #fff;
  background: var(--bg-base);
  border-top-color: #fff;
}

/* ─── Main layout ─── */
.page-wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ─── Footer ─── */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 28px 32px 32px;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer-legal a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-legal a:hover {
  color: var(--text);
}
.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.footer-social-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.footer-social-svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.site-footer-copy {
  width: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
@media (min-width: 900px) {
  .site-footer-copy {
    width: auto;
    margin: 0;
    margin-left: auto;
    text-align: right;
    order: 3;
  }
  .site-footer-legal { order: 1; }
  .site-footer-social { order: 2; }
}
@media (max-width: 640px) {
  .site-footer {
    padding: 20px 16px 24px;
  }
  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .site-footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  .site-footer-social {
    justify-content: flex-start;
  }
  .site-footer-copy {
    text-align: left;
  }
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  min-height: calc(100vh - var(--header-h) - 52px);
}

.shop-area {
  padding: 20px 24px 40px;
  border-right: 1px solid var(--border);
  position: relative;
}
.shop-area.is-loading .product-grid {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.12s;
}
.shop-area.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: shop-spin 0.55s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes shop-spin {
  to { transform: rotate(360deg); }
}
.server-tab.shop-filter { cursor: pointer; }

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.search-bar svg { flex-shrink: 0; color: var(--text-muted); }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* Categories */
.category-filters {
  --cat-filter-color: #c5cad3;
  --cat-filter-hover-bg: rgba(255, 255, 255, 0.08);
  --cat-filter-active-bg: rgba(255, 255, 255, 0.14);
  --cat-filter-active-color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  padding-bottom: 14px;
}
.category-filters-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.category-filters .cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cat-filter-color);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.category-filters .cat-btn:hover {
  background: var(--cat-filter-hover-bg);
  color: #e8ebf0;
}
.category-filters .cat-btn.active {
  background: var(--cat-filter-active-bg);
  color: var(--cat-filter-active-color);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}
.cat-icon-svg,
.cat-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.cat-icon-svg {
  color: inherit;
  overflow: visible;
}
.cat-icon-svg path,
.cat-icon-svg circle,
.cat-icon-svg rect,
.cat-icon-svg line,
.cat-icon-svg polyline,
.cat-icon-svg polygon {
  vector-effect: non-scaling-stroke;
}
.category-filters .cat-btn.active .cat-icon-svg {
  color: #fff;
}
.category-filters .cat-btn.active .cat-icon-img,
.category-filters .cat-btn.active .cat-icon-img--external {
  filter: brightness(0) invert(1);
}
.header-icon-svg,
.footer-social-svg,
.search-bar svg {
  display: block;
  flex-shrink: 0;
}
.header-icon-svg {
  color: currentColor;
}
.footer-social-svg {
  color: currentColor;
}

/* Products header */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.products-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 8px;
  min-width: 26px;
  min-height: 22px;
  box-sizing: border-box;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sort-bar a,
.sort-bar button,
.profile-sort-btn {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.sort-bar a:hover,
.sort-bar button:hover,
.profile-sort-btn:hover { color: var(--text); }
.sort-bar a.active,
.sort-bar button.active,
.profile-sort-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Product grid — крупные карточки, плотнее друг к другу */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1480px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 120, 60, 0.35);
  transform: translateY(-5px);
}
.product-card:has(.product-badge-icon:hover),
.product-card:has(.product-badge-icon:focus-visible) {
  z-index: 8;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.card-badges > * {
  pointer-events: auto;
}
.card-badges:has(.product-badge-icon:hover),
.card-badges:has(.product-badge-icon:focus-visible) {
  z-index: 12;
}

.card-item-qty {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 3px;
  pointer-events: none;
}
.badge {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  line-height: 1.2;
}
.badge-fire { background: #c44; color: #fff; }
.product-badge-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(12, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8ebf0;
  cursor: default;
  backdrop-filter: blur(4px);
}
.product-badge-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  z-index: 30;
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: #f2f4f8;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  background: rgba(16, 18, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.06s ease, visibility 0s linear 0.06s;
}
.product-badge-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(16, 18, 22, 0.97);
}
.product-badge-icon:hover .product-badge-tip,
.product-badge-icon:focus-visible .product-badge-tip {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.06s ease, visibility 0s;
}
.product-badge-icon-svg,
.product-badge-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.product-badge-icon-svg {
  color: inherit;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}
.card-img-wrap img { max-height: 210px; max-width: 96%; object-fit: contain; }
.card-daily-timer,
.modal-daily-timer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--success);
  text-shadow: 0 0 14px rgba(61, 186, 95, 0.45), 0 2px 10px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  line-height: 1;
}
.card-daily-timer.is-available,
.modal-daily-timer.is-available {
  font-size: clamp(15px, 4vw, 24px);
  letter-spacing: 0.08em;
}
.modal-product .modal-hero {
  position: relative;
}
.modal-daily-timer[hidden] {
  display: none !important;
}
.card-emoji { font-size: 72px; opacity: 0.5; }

.card-body { padding: 14px 16px 18px; }
.card-kit-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--promo);
  margin-bottom: 6px;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.card-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.card-free {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
}

/* Sidebar */
.sidebar {
  padding: 20px 16px;
  background: var(--bg-panel);
}
.online-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.online-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.online-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.server-online-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.server-online-item:last-child { border-bottom: none; }
.server-online-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.server-online-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(220, 60, 60, 0.25);
}
.server-online-status-dot.is-online {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.28);
}
.server-online-status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(220, 60, 60, 0.25);
}
.server-online-name {
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-online-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.server-online-count { color: var(--text); font-weight: 600; white-space: nowrap; }
.server-copy-ip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.server-copy-ip:hover {
  color: var(--accent);
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.08);
}
.server-copy-ip.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}
.server-online-item--offline .server-online-name { opacity: 0.75; }
.online-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.online-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.online-bar-fill.low { background: var(--accent); }
.online-bar-fill.mid { background: #c9a227; }
.online-bar-fill.high { background: var(--danger); }

.sidebar-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sidebar-hint strong { color: var(--accent); }

.banners-row {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.banners-row img { height: 44px; border-radius: var(--radius-sm); }

/* ─── Modals ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-overlay::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s ease, visibility 0s;
}
.modal-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: none;
  overflow: visible;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.modal-overlay.open .modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.modal-overlay.is-closing .modal {
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-overlay .modal {
    transition: none !important;
  }
}
.modal-lg { max-width: 720px; }

/* Модалка товара — по содержимому, без внутренних скроллбаров */
#productModalOverlay {
  overflow-x: hidden;
  overflow-y: auto;
  align-items: flex-start;
  padding: 24px 16px;
}
#productModalOverlay .modal.modal-product {
  width: min(420px, calc(100vw - 32px));
  min-width: min(300px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: none;
  overflow: visible;
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.modal-product-head {
  position: relative;
  flex-shrink: 0;
  padding: 14px 52px 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.modal-product-head .modal-close {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.modal-product-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  line-height: 1.2;
}
.modal-product-body {
  flex: 1 1 auto;
  padding: 18px 18px 16px;
  overflow: visible;
}
.modal-product-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}
.modal-product-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.modal-product-total-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.modal-product-total-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.modal-product-cta {
  display: flex;
  width: 100%;
  margin: 0;
  border-radius: 0;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.modal-product-foot .btn-primary.modal-product-cta {
  padding: 16px 18px;
}
.modal-product-foot .btn-steam.modal-product-cta {
  padding: 14px 18px;
}
.modal-product-buy-msg {
  margin: 0;
  padding: 0;
  font-size: 12px;
  text-align: center;
  color: var(--danger);
}
.modal-product-buy-msg:empty {
  display: none;
}
.modal-product-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 2px;
}
.modal-product-note-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}
.modal-product-note-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}
.modal-product-note-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.modal-product-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
}
.modal-product .modal-desc.modal-product-desc {
  text-align: left;
  margin-bottom: 14px;
  width: 100%;
  word-break: break-word;
}
.modal-product .modal-hero {
  margin-bottom: 12px;
  max-width: 100%;
}
.modal-product .modal-hero img {
  max-height: 176px;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.modal-kit-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--promo);
  margin: 0 0 10px;
  text-align: center;
  width: 100%;
}
.modal-product .kit-grid,
.modal-product .case-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  box-sizing: border-box;
  overflow: visible;
}
.modal-product .kit-item,
.modal-product .case-option-btn {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 4px;
  box-sizing: border-box;
}
.modal-product .case-option-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(122, 158, 58, 0.55);
}
.modal-product .case-option-btn.active {
  background: rgba(122, 158, 58, 0.32);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(122, 158, 58, 0.5);
}
.modal-product .kit-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.modal-product .case-option-btn img {
  width: 100%;
  height: auto;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}
.modal-product .choice-option-btn img {
  margin-bottom: 11px;
}
.modal-product .case-option-price-tag {
  font-size: 9px;
  left: 1px;
  right: 1px;
  bottom: 1px;
}
.modal-product .case-option-qty {
  font-size: 9px;
  right: 2px;
  bottom: 1px;
}
.promo-hint-accordion {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  overflow: hidden;
}
.promo-hint-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}
.promo-hint-trigger:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.promo-hint-accordion.is-open .promo-hint-trigger {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.promo-hint-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.28s ease, margin 0.28s ease;
}
.promo-hint-accordion.is-open .promo-hint-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.promo-hint-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.promo-hint-accordion.is-open .promo-hint-panel {
  grid-template-rows: 1fr;
}
.promo-hint-panel-inner {
  overflow: hidden;
}
.promo-hint-body {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease 0.04s, transform 0.28s ease;
}
.promo-hint-accordion.is-open .promo-hint-body {
  opacity: 1;
  transform: translateY(0);
}
.promo-guest-block {
  text-align: center;
}
.promo-guest-text {
  margin-bottom: 18px !important;
}
.promo-guest-login,
.btn-steam-block {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}
.modal-product .product-qty-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0 4px;
}
.modal-product .product-qty-controls {
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.product-qty-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.product-qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.product-qty-middle {
  position: relative;
  width: calc(100% - 84px);
  min-width: 0;
  height: 42px;
  background: rgba(255, 255, 255, 0.02);
}
#productQtyRange {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  border: none;
  background: linear-gradient(to right, #575757 0%, #575757 var(--qty-fill, 0%), transparent var(--qty-fill, 0%), transparent 100%);
  cursor: pointer;
}
#productQtyRange::-webkit-slider-runnable-track {
  appearance: none;
  height: 100%;
  background: transparent;
}
#productQtyRange::-moz-range-track {
  height: 100%;
  background: transparent;
}
#productQtyRange::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}
#productQtyRange::-moz-range-thumb {
  width: 14px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
}
#productQtyInput {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 0 10px;
  outline: none;
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  cursor: default;
}
.product-qty-middle.is-editing #productQtyInput {
  pointer-events: auto;
  user-select: text;
  cursor: text;
  background: rgba(0, 0, 0, 0.18);
}
.product-qty-middle.is-editing #productQtyRange {
  pointer-events: none;
}
#productQtyInput::-webkit-outer-spin-button,
#productQtyInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#productQtyInput {
  -moz-appearance: textfield;
  appearance: textfield;
}
@media (max-width: 360px) {
  .modal-product .kit-grid,
  .modal-product .case-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.modal-wipeblock {
  display: flex;
  flex-direction: column;
  max-width: 920px;
  width: 100%;
  max-height: min(92vh, 900px);
  padding: 0;
  overflow: hidden;
}
#wipeblockModalOverlay .modal-wipeblock {
  max-height: min(92vh, 900px);
}
.modal-wipeblock-head {
  position: relative;
  flex-shrink: 0;
  padding: 14px 52px 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.modal-wipeblock-head .modal-close {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.modal-wipeblock-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  text-align: left;
  line-height: 1.3;
}
.wipeblock-modal-body {
  flex: 1;
  min-height: 0;
  max-height: min(calc(92vh - 120px), 780px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 18px 20px;
  scrollbar-gutter: stable;
}
.wipeblock-modal-body::-webkit-scrollbar-track {
  border: 1px solid var(--border);
}
.wipeblock-loading,
.wipeblock-empty {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 20px;
}
.wipeblock-group { margin-bottom: 24px; }
.wipeblock-group-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--promo);
  margin: 0 0 14px;
}
.wipeblock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.wb-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px;
  text-align: center;
}
.wb-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.wb-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.modal-open { overflow: hidden; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 32px 16px 0;
  padding-right: 24px;
}
.modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.modal-hero {
  text-align: center;
  margin-bottom: 16px;
}
.modal-hero img { max-height: 140px; border-radius: var(--radius); }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.kit-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kit-item img { width: 100%; height: 100%; object-fit: contain; }
.kit-item .qty {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  z-index: 1;
}

/* Тултип предмета в наборе (магазин + инвентарь) */
.has-item-tip { position: relative; }
.item-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 20;
}
.item-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--border-strong);
}
.has-item-tip:hover .item-tip,
.has-item-tip:focus-within .item-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.has-item-tip:hover { z-index: 21; }

/* Плавающий тултип набора (вне .modal — transform ломает position:fixed) */
.kit-item-tip-float {
  position: fixed;
  z-index: 650;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  max-width: min(280px, calc(100vw - 24px));
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.kit-item-tip-float[hidden] {
  display: none !important;
}
.kit-item-tip-float::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--border-strong);
}
.kit-item-tip-float.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--border-strong);
}
#productModalOverlay .has-item-tip:hover {
  z-index: 2;
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-row select,
.form-row input[type="text"],
.form-row input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
.form-row select:focus,
.form-row input:focus { outline: none; border-color: var(--accent); }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.total-row strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #5a7a2e 0%, var(--accent) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-footnote {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.msg-error { color: var(--danger); font-size: 12px; margin-top: 8px; }
.msg-success { color: var(--success); font-size: 12px; margin-top: 8px; }

.case-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-option-btn {
  width: 74px;
  height: 74px;
  padding: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.case-option-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(122, 158, 58, 0.55);
  color: var(--text);
}
.case-option-btn.active {
  background: rgba(122, 158, 58, 0.32);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(122, 158, 58, 0.5);
  color: var(--text);
}
.case-option-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.case-option-qty {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 11px;
  color: var(--text);
}

.case-option-price-tag {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--accent);
  pointer-events: none;
}
.choice-option-btn img {
  margin-bottom: 12px;
}
.case-option-btn.active .case-option-price-tag,
.choice-option-btn.active .case-option-price-tag {
  color: #fff;
}
.modal-product-desc {
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  margin-top: -4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.modal-product-desc p {
  margin: 0 0 8px;
}
.modal-product-desc p:last-child {
  margin-bottom: 0;
}
.modal-product-desc ul,
.modal-product-desc ol {
  margin: 6px 0 8px;
  padding-left: 1.25em;
}
.modal-product-desc li + li {
  margin-top: 4px;
}

.topup-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.topup-amounts .btn-steam { flex: 1 1 calc(33% - 8px); min-width: 88px; justify-content: center; }

.topup-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.topup-method-btn {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}
.topup-method-btn .topup-method-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}
.topup-method-btn .topup-method-icon[src$=".svg"],
.topup-method-btn .topup-method-icon[src*=".svg?"] {
  filter: brightness(0) invert(0.92);
}
.topup-method-btn.active .topup-method-icon[src$=".svg"],
.topup-method-btn.active .topup-method-icon[src*=".svg?"] {
  filter: brightness(0) invert(1);
}
.topup-method-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(138, 255, 74, 0.35);
}
.topup-bonus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
}
.topup-bonus-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  padding: 10px 8px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  font: inherit;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}
.topup-bonus-card strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.topup-bonus-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.topup-bonus-card.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(138, 255, 74, 0.08);
}
.topup-bonus-card:focus-visible,
.topup-bonus-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.topup-summary {
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-weight: 600;
}
#topupAmountInput {
  border-color: var(--border) !important;
  box-shadow: none !important;
}
#topupAmountInput:focus {
  border-color: var(--border-strong) !important;
  outline: none;
  box-shadow: none !important;
}
#topupAmountInput::placeholder {
  color: var(--text-muted);
}
.topup-summary-amount {
  color: var(--accent);
  font-weight: 700;
}
.topup-summary-bonus {
  color: #d4b35d;
  font-weight: 700;
}
#topupAmountInput::-webkit-outer-spin-button,
#topupAmountInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#topupAmountInput {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* ─── Servers page ─── */
.servers-page {
  padding: 24px 28px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.servers-page-header { margin-bottom: 24px; }
.servers-page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.servers-page-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.servers-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 20px;
  align-items: start;
}
.servers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.servers-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.servers-main { min-width: 0; }
.servers-empty-card {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.server-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.server-list-item:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.server-list-item.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(122, 158, 58, 0.2);
}
.server-list-item--offline { opacity: 0.85; }
.server-list-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--danger);
}
.server-list-dot.is-online { background: var(--accent); }
.server-list-body { flex: 1; min-width: 0; }
.server-list-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.server-list-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.server-list-bar {
  display: block;
  height: 3px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.server-list-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.server-list-bar-fill.low { background: var(--accent); }
.server-list-bar-fill.mid { background: #c9a227; }
.server-list-bar-fill.high { background: var(--danger); }

.server-detail-card {
  padding: 24px 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.server-detail-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.server-detail-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.server-detail-status-dot,
.server-list-dot {
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
.server-detail-status-dot.is-online { background: var(--accent); }
.server-detail-status-dot.is-offline,
.server-detail-status-dot.offline { background: var(--text-muted); box-shadow: none; }
.server-detail-status-dot.full { background: var(--danger); box-shadow: 0 0 0 2px rgba(220, 60, 60, 0.25); }
.server-detail-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.server-detail-badge--online {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(122, 158, 58, 0.35);
}
.server-detail-badge--offline {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.server-detail-desc {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  max-width: 720px;
}
.server-detail-online-bar-wrap { margin-top: 20px; }
.server-detail-online-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.server-detail-online-label strong { color: var(--text); }
.server-detail-online-bar { height: 6px; }

.server-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.server-stat-pill {
  padding: 14px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.server-stat-pill-val {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.server-stat-pill-lbl {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.server-connect-row {
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px 6px 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.server-connect-cmd {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--accent);
  word-break: break-all;
  background: transparent;
}
.server-connect-copy {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
}
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-connect:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { color: var(--text); border-color: var(--border-strong); }

.server-section-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--text-secondary);
}
.server-rates-block { margin-top: 24px; }
.server-rates-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.server-rates-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.server-rate-key { color: var(--text-muted); text-transform: capitalize; }
.server-rate-val { color: var(--accent); font-weight: 600; }

.server-wipes-block { margin-top: 24px; }
.server-wipes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.server-wipes-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.server-wipes-list li:last-child { border-bottom: none; }
.server-wipes-list time { color: var(--text); font-weight: 500; }

.server-chart-card {
  margin-top: 24px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.server-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.server-chart-head .server-section-title { margin: 0; }
.period-tabs { display: flex; gap: 6px; }
.period-tabs .period-tab {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.period-tabs .period-tab:hover { color: var(--text); border-color: var(--border); }
.period-tabs .period-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.online-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.online-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.online-bar-fill.low { background: var(--accent); }
.online-bar-fill.mid { background: #c9a227; }
.online-bar-fill.high { background: var(--danger); }
.server-chart-empty {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.server-chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
}
.server-online-chart {
  display: block;
  width: 100%;
  cursor: crosshair;
}
.server-chart-tooltip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  pointer-events: none;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.server-chart-tooltip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
}
.server-chart-tooltip span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}
.server-chart-tooltip time {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.status-dot.offline { background: var(--text-muted); }
.status-dot.full { background: var(--danger); }

/* ─── Referrals cabinet ─── */
.profile-partner-cabinet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(122, 158, 58, 0.35), rgba(122, 158, 58, 0.15));
  border: 1px solid rgba(122, 158, 58, 0.45);
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}
.profile-partner-cabinet-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}

.referrals-cabinet { padding: 24px 28px 48px; max-width: 900px; margin: 0 auto; }
.referrals-cabinet-in-profile {
  padding: 0;
  max-width: none;
  margin: 0;
}
.referrals-cabinet-in-profile .referrals-cabinet-stats-row {
  margin-top: 0;
}
.referrals-cabinet-partner-title {
  margin: 0 0 16px;
}
.referrals-cabinet-stats-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.referrals-cabinet-stats-row .referrals-stat-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
}
.referrals-cabinet-stats-row .referrals-stat-num {
  font-size: 22px;
}
.referrals-cabinet-stats-row .referrals-stat-label {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.referrals-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.referrals-back:hover { color: var(--accent); }
.referrals-cabinet-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.referrals-cabinet-sub { margin: 0; color: var(--text-secondary); font-size: 14px; }
.referrals-cabinet-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.referrals-stat-card-accent {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.referrals-wallet-card {
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.referrals-wallet-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.referrals-wallet-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.referrals-wallet-alert {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.referrals-wallet-alert-success {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.referrals-wallet-alert-error {
  background: color-mix(in srgb, #e74c3c 15%, transparent);
  color: #f87171;
}
.referrals-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.referrals-wallet-form-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.referrals-wallet-field {
  margin-bottom: 12px;
}
.referrals-wallet-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.referrals-wallet-field input,
.referrals-wallet-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}
.referrals-wallet-field textarea {
  resize: vertical;
  min-height: 72px;
}
.referrals-cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.referrals-stat-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.referrals-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.referrals-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.referrals-link-card,
.referrals-table-card {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.referrals-link-label { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); }
.referrals-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.referrals-link-code {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  font-size: 12px;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.referrals-copy-btn { flex-shrink: 0; }
.referrals-link-hint { margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }
.referrals-table-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.referrals-table-wrap { overflow-x: auto; }
.referrals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.referrals-table th,
.referrals-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.referrals-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.referrals-yes { color: var(--accent); font-weight: 600; }
.referrals-no { color: var(--text-muted); }
.referrals-empty { margin: 0; color: var(--text-muted); font-size: 14px; }
.help-accordion-rich {
  line-height: 1.65;
  color: var(--text-secondary);
}
.rich-text-body h2,
.help-accordion-rich h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 22px 0 12px;
}
.rich-text-body h2:first-child,
.help-accordion-rich h2:first-child { margin-top: 0; }
.rich-text-body p,
.help-accordion-rich p { margin: 0 0 12px; }
.rich-text-body p:last-child,
.help-accordion-rich p:last-child { margin-bottom: 0; }
.rich-text-body ul,
.rich-text-body ol,
.help-accordion-rich ul,
.help-accordion-rich ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.rich-text-body a,
.help-accordion-rich a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Wipeblock ─── */
.wipeblock-page { padding: 24px 28px 48px; width: 100%; max-width: none; margin: 0; }
.wipeblock-page h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wipeblock-intro { color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; }
.wipeblock-group { margin-bottom: 28px; }
.wipeblock-group h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--promo);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wipeblock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.wb-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}
.wb-item img { width: 48px; height: 48px; object-fit: contain; }
.wb-item span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Help / static pages ─── */
.page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 24px 48px;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.help-nav a,
.help-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.help-nav a:hover,
.help-nav a.active,
.help-nav-btn:hover,
.help-nav-btn.active { background: var(--bg-card); color: var(--text); }
.help-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.help-section-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
}
.help-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.help-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 50%;
}
.help-accordion .promo-hint-accordion {
  margin-top: 0;
}
.help-accordion .promo-hint-trigger {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 14px;
}
.help-accordion .promo-hint-trigger > span:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.help-accordion .promo-hint-body.help-accordion-rich {
  font-size: 14px;
}
.help-accordion-rich strong { color: var(--text); }

/* Profile */
.profile-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 32px 48px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 24px;
  align-items: start;
}
.profile-main { grid-column: 1; min-width: 0; }
.profile-aside {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-header-main { min-width: 0; width: 100%; }
.profile-aside .profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.profile-user-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
.profile-username {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.profile-logout-btn:hover {
  color: var(--danger);
  background: rgba(224, 62, 62, 0.1);
  border-color: rgba(224, 62, 62, 0.35);
}
.profile-aside .profile-steamid {
  font-size: 11px;
  word-break: break-all;
}
.profile-aside .profile-avatar {
  width: 72px;
  height: 72px;
}
.profile-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.profile-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.profile-meta-sep { opacity: 0.4; margin: 0 4px; }
.profile-steamid { color: var(--text-muted); font-size: 12px; }
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.profile-balance-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(122, 158, 58, 0.12) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(122, 158, 58, 0.25);
  border-radius: var(--radius);
}
.profile-balance-card .btn-steam { width: 100%; justify-content: center; }
.profile-balance-info { text-align: center; }
.profile-balance-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.profile-balance-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.profile-currency { font-size: 22px; opacity: 0.85; }

.profile-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.profile-alert-error {
  background: rgba(224, 62, 62, 0.12);
  border: 1px solid rgba(224, 62, 62, 0.35);
  color: #f08080;
}
.profile-alert-success {
  background: rgba(61, 186, 95, 0.12);
  border: 1px solid rgba(61, 186, 95, 0.35);
  color: var(--success);
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.profile-tab {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.profile-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.profile-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.profile-panel { min-width: 0; }
.profile-section-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.profile-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.profile-hint strong { color: var(--accent); }

.profile-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.profile-empty a { color: var(--accent); }

.profile-inventory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.profile-inventory-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px;
  min-width: 0;
  min-height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-inventory-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.profile-inventory-thumb {
  flex: 1 1 auto;
  min-height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
}
.profile-inventory-thumb img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.profile-inventory-emoji {
  font-size: 64px;
  line-height: 1;
  opacity: 0.45;
}
.profile-inventory-body {
  flex: 0 0 auto;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 10px;
}
.profile-inventory-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 2.6em;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}
.profile-inventory-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -2px;
}
.profile-inventory-kit {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}
.profile-inventory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}
.profile-inventory-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.profile-inventory-item .profile-btn-sm {
  width: auto;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 12px !important;
  font-size: 12px !important;
}
.profile-btn-sm {
  padding: 8px 14px !important;
  font-size: 12px !important;
}

.profile-sort-bar { margin-bottom: 16px; }

.profile-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.profile-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.profile-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.profile-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.profile-table tbody tr:last-child td { border-bottom: none; }
.profile-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.profile-table .col-date { color: var(--text-secondary); white-space: nowrap; }
.profile-table .col-title { color: var(--text-secondary); }
.profile-table .col-amount { font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.profile-table .amount-plus { color: var(--success); }
.profile-table .amount-minus { color: var(--danger); }
.profile-tx-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
}
.profile-more-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.profile-notice {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.profile-notice-btn { margin-top: 14px; }

.profile-form {
  max-width: 420px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-form .form-row input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
.profile-form .form-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.profile-confirm-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profile-confirm-box p { margin: 0 0 14px; color: var(--text-secondary); font-size: 14px; }
.profile-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ─── Profile bonuses ─── */
.profile-bonuses-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-bonuses-heading-icon {
  display: flex;
  color: var(--text);
  opacity: 0.9;
}
.profile-bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.profile-bonus-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 168px;
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, rgba(30, 38, 62, 0.95) 0%, rgba(18, 22, 38, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-bonus-card.is-done {
  opacity: 0.72;
}
.profile-bonus-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding-right: 72px;
}
.profile-bonus-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.profile-bonus-card-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 280px;
}
.profile-bonus-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.profile-bonus-btn {
  display: inline-flex;
  align-items: stretch;
  min-height: 40px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: left;
}
button.profile-bonus-btn {
  appearance: none;
  -webkit-appearance: none;
}
.profile-bonus-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
}
.profile-bonus-btn-main .footer-social-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.profile-bonus-btn-reward {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.profile-bonus-btn--discord {
  background: #5865f2;
  border-color: rgba(88, 101, 242, 0.5);
}
.profile-bonus-btn--telegram {
  background: #2aabee;
  border-color: rgba(42, 171, 238, 0.5);
}
.profile-bonus-btn--vk {
  background: #0077ff;
  border-color: rgba(0, 119, 255, 0.5);
}
.profile-bonus-btn--done,
.profile-bonus-btn--muted {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
}
.profile-bonus-btn--done .profile-bonus-btn-main,
.profile-bonus-btn--muted .profile-bonus-btn-main {
  color: var(--text-secondary);
}
.profile-bonus-card-deco {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.profile-bonus-card-deco .footer-social-svg {
  width: 72px;
  height: 72px;
}
.profile-bonus-card--discord .profile-bonus-card-deco { color: #5865f2; }
.profile-bonus-card--telegram .profile-bonus-card-deco { color: #2aabee; }
.profile-bonus-card--vk .profile-bonus-card-deco { color: #0077ff; }

.auth-telegram-page {
  max-width: 420px;
  margin: 48px auto;
  padding: 24px;
  text-align: center;
}
.auth-telegram-page h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 12px;
}
.auth-telegram-hint {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 20px;
}
.auth-telegram-widget {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-telegram-status {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: rgba(88, 166, 255, 0.12);
  color: var(--text);
}
.auth-telegram-status.is-error {
  background: rgba(220, 80, 80, 0.15);
  color: #f5a5a5;
}

/* Модалка бонуса соцсети */
.modal-bonus-social {
  max-width: 400px;
  padding: 24px 22px 22px;
  text-align: center;
}
.bonus-social-modal-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
  opacity: 0.85;
}
#bonusSocialModalOverlay.is-discord .bonus-social-modal-icon { color: #5865f2; }
#bonusSocialModalOverlay.is-telegram .bonus-social-modal-icon { color: #2aabee; }
#bonusSocialModalOverlay.is-vk .bonus-social-modal-icon { color: #0077ff; }
.bonus-social-modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
}
.bonus-social-modal-desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.bonus-social-modal-reward {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--promo);
}
.bonus-social-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bonus-social-modal-actions .btn-secondary,
.bonus-social-modal-actions .btn-steam {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.bonus-social-modal-actions .is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.bonus-social-modal-hint {
  margin: 14px 0 0;
  text-align: center;
}

/* ─── Profile game stats ─── */
.profile-game-stats {
  --pgs-wipe: #9bc44a;
  --pgs-lifetime: #e8924a;
}
.pgs-rust-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
}
.pgs-banner-deco-img {
  opacity: 0.35;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.pgs-mode-btn-icon {
  flex-shrink: 0;
}
.pgs-banner {
  position: relative;
  margin-bottom: 20px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(122, 158, 58, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(125deg, rgba(122, 158, 58, 0.14) 0%, rgba(18, 22, 38, 0.95) 45%, rgba(232, 98, 10, 0.08) 100%),
    var(--bg-card);
}
.pgs-banner-deco {
  position: absolute;
  display: flex;
  pointer-events: none;
}
.pgs-banner-deco--left {
  top: 4px;
  left: 8px;
  transform: rotate(-8deg);
}
.pgs-banner-deco--right {
  right: 8px;
  bottom: 4px;
  transform: rotate(10deg);
}
.pgs-banner-content {
  position: relative;
  z-index: 1;
}
.pgs-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.pgs-banner-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.pgs-banner-title-icon .pgs-rust-icon {
  width: 32px;
  height: 32px;
}
.pgs-banner-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.pgs-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pgs-empty-icon {
  display: flex;
  margin-bottom: 12px;
  opacity: 0.85;
}
.pgs-empty-icon .pgs-rust-icon {
  width: 48px;
  height: 48px;
}
.pgs-mode-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pgs-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.pgs-mode-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.pgs-mode-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(122, 158, 58, 0.5) 0%, rgba(122, 158, 58, 0.25) 100%);
  border-color: rgba(122, 158, 58, 0.45);
  box-shadow: 0 4px 16px rgba(122, 158, 58, 0.15);
}
.pgs-mode-btn[data-pgs-mode="lifetime"].active {
  background: linear-gradient(135deg, rgba(232, 98, 10, 0.45) 0%, rgba(232, 98, 10, 0.2) 100%);
  border-color: rgba(232, 98, 10, 0.4);
  box-shadow: 0 4px 16px rgba(232, 98, 10, 0.12);
}
.pgs-single-mode-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pgs-mode-panel {
  display: none;
}
.pgs-mode-panel.is-active {
  display: block;
}
.pgs-block {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pgs-block:last-child {
  margin-bottom: 0;
}
.pgs-block--wipe {
  border-color: rgba(122, 158, 58, 0.32);
  background: linear-gradient(165deg, rgba(122, 158, 58, 0.1) 0%, var(--bg-card) 50%);
}
.pgs-block--lifetime {
  border-color: rgba(232, 146, 74, 0.28);
  background: linear-gradient(165deg, rgba(232, 98, 10, 0.08) 0%, var(--bg-card) 50%);
}
.pgs-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pgs-wipe);
  background: rgba(122, 158, 58, 0.12);
  border: 1px solid rgba(122, 158, 58, 0.25);
  border-radius: 999px;
}
.pgs-server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgs-wipe);
  box-shadow: 0 0 8px rgba(155, 196, 74, 0.8);
}
.pgs-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.pgs-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.pgs-hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}
.pgs-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.pgs-hero-icon .pgs-rust-icon {
  width: 36px;
  height: 36px;
}
.pgs-hero-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
.pgs-hero--wipe .pgs-hero-value {
  color: var(--pgs-wipe);
}
.pgs-hero--lifetime .pgs-hero-value {
  color: var(--pgs-lifetime);
}
.pgs-hero-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pgs-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.pgs-group-card {
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pgs-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.pgs-group-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pgs-group-img-el {
  width: 40px;
  height: 40px;
}
.pgs-group-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.pgs-stat-list {
  margin: 0;
  padding: 8px 12px 10px;
}
.pgs-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pgs-stat-row:last-child {
  border-bottom: none;
}
.pgs-stat-row.is-zero dd {
  color: var(--text-muted);
  opacity: 0.85;
}
.pgs-stat-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  min-width: 0;
}
.pgs-stat-row dt > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pgs-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.pgs-stat-icon .pgs-rust-icon {
  width: 22px;
  height: 22px;
}
.pgs-stat-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.pgs-single-mode-label .pgs-rust-icon,
.pgs-mode-btn .pgs-rust-icon {
  flex-shrink: 0;
}

/* Экран статистики (референс) */
.profile-game-stats {
  --pgs-gap: 36px;
  --pgs-title-size: 15px;
  --pgs-entity-icon: 56px;
  --pgs-stat-icon: 36px;
  --pgs-weapon-icon: 48px;
}
.pgs-screen {
  display: flex;
  flex-direction: column;
  gap: var(--pgs-gap);
}
.pgs-screen-section {
  margin: 0;
}
.pgs-screen-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: var(--pgs-title-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.pgs-screen-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pgs-screen-badge--gather {
  text-transform: lowercase;
}
.pgs-screen-title-extra {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pgs-screen-title {
  flex-wrap: wrap;
}
.pgs-kills-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 1.15fr);
  gap: 24px;
  align-items: start;
}
.pgs-entity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pgs-entity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 118px;
  padding: 16px 10px 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pgs-entity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pgs-entity-icon);
  height: var(--pgs-entity-icon);
  flex-shrink: 0;
}
.pgs-entity-icon .pgs-entity-img,
.pgs-entity-icon .pgs-rust-icon {
  width: var(--pgs-entity-icon);
  height: var(--pgs-entity-icon);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pgs-entity-label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.pgs-entity-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.pgs-hits-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pgs-hits-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pgs-hit-legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.pgs-hit-legend-row--right {
  grid-template-columns: auto 1fr 10px;
  text-align: right;
}
.pgs-hit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pgs-hit-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgs-hit-pct {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.pgs-hits-chart {
  display: flex;
  justify-content: center;
}
.pgs-donut {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
}
.pgs-donut-hole {
  position: absolute;
  inset: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.pgs-donut-kd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pgs-donut-kd-value {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.pgs-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pgs-stat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  min-height: 64px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pgs-stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pgs-stat-icon);
  height: var(--pgs-stat-icon);
  flex-shrink: 0;
}
.pgs-stat-card-icon .pgs-rust-icon {
  width: var(--pgs-stat-icon);
  height: var(--pgs-stat-icon);
}
.pgs-stat-card-label {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-secondary);
  min-width: 0;
}
.pgs-stat-card-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.pgs-weapons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pgs-weapons-empty {
  margin: 0;
  padding: 20px 16px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.pgs-weapon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 100px;
  min-height: 112px;
  padding: 16px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pgs-weapon-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pgs-weapon-icon);
  height: var(--pgs-weapon-icon);
}
.pgs-weapon-card-icon .pgs-rust-icon {
  width: var(--pgs-weapon-icon);
  height: var(--pgs-weapon-icon);
}
.pgs-weapon-card-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

@media (max-width: 640px) {
  .pgs-banner {
    padding: 18px 14px;
  }
  .pgs-banner-deco {
    width: 52px;
    height: 52px;
  }
  .pgs-mode-bar {
    flex-direction: column;
  }
  .pgs-hero {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgs-groups {
    grid-template-columns: 1fr;
  }
  .pgs-kills-layout {
    grid-template-columns: 1fr;
  }
  .pgs-entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgs-hits-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pgs-hits-legend--right .pgs-hit-legend-row--right {
    grid-template-columns: 10px 1fr auto;
    text-align: left;
  }
  .pgs-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgs-weapons-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .pgs-weapon-card {
    min-width: 0;
  }
  .pgs-screen-title-extra {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}

.profile-stats-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-referral-aside-card {
  margin-top: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-referral-current {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.profile-referral-current strong {
  color: var(--accent);
}
.profile-referral-form {
  margin-top: 12px;
}
.profile-referral-form .form-row {
  margin-bottom: 10px;
}
.profile-referral-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.profile-referral-form input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  box-sizing: border-box;
}
.profile-referral-submit {
  width: 100%;
}
.profile-stats-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-stats-item {
  padding: 12px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.profile-stats-num {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.profile-stats-num-bonus {
  color: var(--promo);
}
.profile-stats-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-referral-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-referral-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.profile-referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-referral-stat {
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.profile-referral-num {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.profile-referral-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-referral-link-label {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-referral-link {
  display: block;
  padding: 10px 12px;
  font-size: 11px;
  word-break: break-all;
  color: var(--accent);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

@media (max-width: 1400px) {
  .profile-inventory-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .profile-inventory-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .profile-inventory-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-page {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
  }
  .profile-main,
  .profile-aside {
    grid-column: 1;
  }
  .profile-aside {
    position: static;
  }
  .profile-inventory-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profile-inventory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  z-index: 200;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.cookie-banner p { flex: 1; font-size: 12px; color: var(--text-secondary); margin: 0; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; }
  .shop-area { border-right: none; }
  .sidebar { border-top: 1px solid var(--border); }
  .servers-layout { grid-template-columns: 1fr; }
  .servers-sidebar { border-bottom: 1px solid var(--border); }
  .server-detail-stats { grid-template-columns: repeat(2, 1fr); }
  .referrals-cabinet-grid,
  .referrals-cabinet-grid-3 { grid-template-columns: 1fr; }
  .referrals-cabinet-stats-row .referrals-stat-card {
    flex: 0 0 auto;
    min-width: 108px;
  }
  .referrals-wallet-actions { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-social { display: none; }
  .help-layout { grid-template-columns: 1fr; }
  .help-accordion { max-width: 100%; }
}
