:root {
    --green: #7c3aed;
    --green-dark: #6d28d9;
    --green-glow: rgba(124, 58, 237, 0.3);
    --green-dim: rgba(124, 58, 237, 0.1);
    --bg: #0D0F14;
    --bg2: #000000;
    --bg3: #000000;
    --bg4: #0d0d11;
    --bg5: #17171d;
    --border: rgba(255,255,255,0.06);
    --border-green: rgba(124, 58, 237, 0.25);
    --text: #F0F2F8;
    --text2: #FFFFFF;
    --text3: #E9ECF2;
    --font: 'Exo 2', sans-serif;
    --font2: 'Rajdhani', sans-serif;
    --radius: 10px;
    --radius-lg: 14px;
    --r-covert: #EB4B4B;
    --r-classified: #D946EF;
    --r-restricted: #8847FF;
    --r-milspec: #4B69FF;
    --r-industrial: #5E98D9;
    --r-consumer: #B0C3D9;
    --r-extraord: #EB4B4B;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
  html, body { overflow-x: hidden; max-width: 100%; }

  body.lock { overflow: hidden; }

  /* ===== TOP NAV ===== */
  nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(10px);
    gap: 20px;
  }
  .nav-left { display: flex; align-items: center; gap: 28px; }
  .logo-text { font-family: var(--font2); font-size: 20px; font-weight: 700; letter-spacing: 1.8px; color: var(--text); text-decoration: none; white-space: nowrap; }
  .logo-text span { color: var(--green); }
  .logo-link { display: flex; align-items: center; text-decoration: none; }
  .logo-svg { height: 32px; width: auto; display: block; transition: opacity 0.15s; }
  .logo-link:hover .logo-svg { opacity: 0.85; }
  .logo-img { height: 30px; width: auto; display: block; transition: opacity 0.15s; }
  .logo-link:hover .logo-img { opacity: 0.85; }
  .nav-links { display: flex; gap: 4px; list-style: none; }
  .nav-links a {
    display: block; padding: 6px 12px; font-size: 13px; font-weight: 500;
    color: var(--text2); text-decoration: none; border-radius: 6px;
    letter-spacing: 0.3px; transition: all 0.2s;
  }
  .nav-links a:hover { color: var(--text); background: var(--bg3); }
  .nav-links a.active { color: #14082a; background: #7c3aed; font-weight: 700; box-shadow: 0 0 12px rgba(124, 58, 237,0.35); }

  .nav-right { display: flex; align-items: center; gap: 10px; }

  /* Balance pill */
  .balance-pill {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 14px 7px 9px;
    background: #000000; border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; transition: all 0.2s;
  }
  .balance-pill:hover { border-color: var(--border-green); background: #0b0b0e; }
  .balance-pill .avatar {
    width: 28px; height: 28px; border-radius: 6px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    display: flex; align-items: center; justify-content: center;
    color: #14082a; font-weight: 800; font-size: 12px;
  }
  .balance-info { display: flex; flex-direction: column; gap: 1px; }
  .balance-amount { font-family: var(--font2); font-size: 15px; font-weight: 700; color: var(--green); line-height: 1; }
  .balance-label { font-size: 10px; color: var(--text3); letter-spacing: 0.4px; text-transform: uppercase; }
  .balance-sub { font-size: 10px; color: var(--text3); letter-spacing: 0.3px; margin-top: 1px; }
  .topup-btn {
    padding: 8px 14px; background: var(--green-dim); border: 1px solid var(--border-green);
    color: var(--green); border-radius: 10px; font-family: var(--font); font-size: 12px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
  }
  .topup-btn:hover { background: var(--green); color: #14082a; }

  .icon-btn {
    width: 38px; height: 38px; border-radius: 10px; background: #000000;
    border: 1px solid var(--border); color: var(--text2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    position: relative; transition: all 0.2s;
  }
  .icon-btn:hover { color: var(--text); border-color: var(--border-green); }
  .icon-btn .badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--green); color: #14082a; font-size: 10px; font-weight: 800;
    padding: 1px 5px; border-radius: 10px; min-width: 16px; text-align: center;
    border: 2px solid var(--bg2);
  }

  /* User avatar + dropdown */
  .user-wrap { position: relative; }
  .user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: #000000; border: 2px solid var(--border);
    cursor: pointer; overflow: hidden; padding: 0;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .user-avatar:hover { border-color: var(--border-green); transform: scale(1.03); }
  .user-avatar.open { border-color: var(--green); }
  .user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .user-avatar .fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #14082a; font-family: var(--font2); font-size: 15px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .user-avatar .online-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 10px; height: 10px; background: var(--green);
    border: 2px solid var(--bg2); border-radius: 50%;
  }

  .user-menu {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    min-width: 220px; background: var(--bg3); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(124, 58, 237,0.08);
    opacity: 0; transform: translateY(-6px) scale(0.97);
    pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  }
  .user-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .user-menu-header {
    padding: 14px 14px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
  }
  .user-menu-header .mini-avatar {
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
    flex-shrink: 0; background: var(--bg4);
    display: flex; align-items: center; justify-content: center;
  }
  .user-menu-header .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .user-menu-header .user-info { min-width: 0; flex: 1; }
  .user-menu-header .user-name {
    font-size: 13px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .user-menu-header .user-steam {
    font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; margin-top: 2px;
  }
  .user-menu-header .user-steam::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
  }
  .user-menu-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 8px;
    color: var(--text2); font-size: 13px; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: all 0.15s;
    background: transparent; border: none; width: 100%; text-align: left; font-family: var(--font);
  }
  .user-menu-item:hover { background: var(--bg4); color: var(--text); }
  .user-menu-item svg { flex-shrink: 0; opacity: 0.8; }
  .user-menu-item:hover svg { opacity: 1; }
  .user-menu-divider { height: 1px; background: var(--border); margin: 4px 2px; }
  .user-menu-item.danger { color: #EB4B4B; }
  .user-menu-item.danger:hover { background: rgba(235,75,75,0.1); color: #EB4B4B; }

  /* ═══════════════ MOBILE FILTERS PANEL ═══════════════ */
  .mf-panel {
    position: fixed; inset: 0; z-index: 95;
    background: var(--bg2);
    display: none; flex-direction: column;
    animation: mfSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mf-panel.open { display: flex; }
  @keyframes mfSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mf-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 16px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .mf-header h2 {
    font-family: var(--font2); font-size: 22px; font-weight: 700;
    color: var(--text); letter-spacing: 0.3px;
  }
  .mf-close {
    width: 36px; height: 36px; border-radius: 10px;
    background: transparent; border: none; color: var(--text2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: all 0.18s;
  }
  .mf-close:hover { color: var(--text); background: var(--bg3); }

  .mf-body {
    flex: 1; overflow-y: auto; padding: 6px 0 16px;
    -webkit-overflow-scrolling: touch;
  }

  .mf-group {
    border-bottom: 1px solid var(--border);
    padding: 4px 20px;
  }
  .mf-group:last-child { border-bottom: none; }
  .mf-group-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0 14px; cursor: pointer; user-select: none;
    gap: 12px;
  }
  .mf-group-title {
    font-family: var(--font2); font-size: 15px; font-weight: 700;
    color: var(--text); display: flex; align-items: center; gap: 10px;
  }
  .mf-group-title .mf-count {
    color: var(--text3); font-weight: 600; font-size: 14px;
  }
  .mf-group-title .mf-count.active { color: var(--green); }
  .mf-group-actions { display: flex; align-items: center; gap: 14px; }
  .mf-group-reset {
    background: transparent; border: none; color: var(--text3); cursor: pointer;
    font-family: var(--font); font-size: 12px; font-weight: 500;
    padding: 0; transition: color 0.15s;
    display: none;
  }
  .mf-group-reset:hover { color: var(--green); }
  .mf-group.has-value .mf-group-reset { display: block; }
  .mf-toggle {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text3); font-size: 18px; font-weight: 300;
    transition: transform 0.2s;
    background: transparent; border: none;
  }
  .mf-group.collapsed .mf-toggle { }

  .mf-body-inner {
    padding-bottom: 16px;
    max-height: 2000px; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.25s ease, opacity 0.2s;
  }
  .mf-group.collapsed .mf-body-inner {
    max-height: 0; padding-bottom: 0; opacity: 0;
  }

  /* Price inputs mobile */
  .mf-price-inputs {
    display: flex; gap: 12px; align-items: center; width: 100%;
  }
  .mf-price-inputs input {
    flex: 1 1 0; width: 0; min-width: 0; padding: 14px 18px;
    background: #000000; border: 1px solid var(--border); border-radius: 999px;
    color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 500;
    text-align: center; appearance: textfield; -moz-appearance: textfield;
  }
  .mf-price-inputs input::-webkit-outer-spin-button,
  .mf-price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .mf-price-inputs input:focus { outline: none; border-color: var(--border-green); background: #0b0b0e; }
  .mf-price-inputs input::placeholder { color: var(--text3); }
  .mf-price-inputs .sep { color: var(--text3); font-size: 14px; flex-shrink: 0; }

  /* Radio/checkbox options mobile (pill-style) */
  .mf-option-list { display: flex; flex-direction: column; gap: 6px; }
  .mf-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--bg3);
    border: 1.5px solid transparent; border-radius: 12px;
    color: var(--text2); font-size: 14px; cursor: pointer;
    transition: all 0.15s; user-select: none;
  }
  .mf-option:hover { color: var(--text); }
  .mf-option.active {
    background: linear-gradient(135deg, rgba(74,144,226,0.2), rgba(0,132,255,0.3));
    color: var(--text); border-color: rgba(0,132,255,0.5);
  }
  .mf-option .mf-radio {
    width: 20px; height: 20px; border: 1.5px solid var(--text3);
    border-radius: 50%; flex-shrink: 0; position: relative;
    transition: all 0.15s;
  }
  .mf-option.active .mf-radio {
    border-color: #fff; background: transparent;
  }
  .mf-option.active .mf-radio::after {
    content: ''; position: absolute; left: 3px; top: 3px;
    width: 11px; height: 11px; background: #fff; border-radius: 50%;
  }
  .mf-option.checkbox .mf-radio { border-radius: 5px; }
  .mf-option.checkbox.active .mf-radio {
    background: #3B82F6; border-color: #3B82F6;
  }
  .mf-option.checkbox.active .mf-radio::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
    background: transparent; border-radius: 0;
  }
  .mf-option .mf-label { flex: 1; font-weight: 500; }
  .mf-option .mf-icon { font-size: 16px; flex-shrink: 0; color: var(--text3); }
  .mf-option.active .mf-icon { color: var(--text); }
  /* Subtype chips shown under a checked category in mobile filters */
  .mf-subtype-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px 0 12px 36px; /* отступ слева чтобы выровнять с чекбоксом */
  }
  .mf-subtype-chip {
    padding: 7px 11px;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text2); border-radius: 7px;
    font-family: var(--font); font-size: 12px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: all 0.15s;
  }
  .mf-subtype-chip:hover { color: var(--text); border-color: var(--border-green); }
  .mf-subtype-chip.active {
    background: var(--green-dim); color: var(--green); border-color: var(--border-green);
  }
  .mf-option .mf-exclude {
    color: var(--text3); font-size: 12px; background: transparent; border: none;
    cursor: pointer; padding: 4px 8px; border-radius: 6px;
    font-family: var(--font); font-weight: 500; transition: all 0.15s;
  }
  .mf-option .mf-exclude:hover { color: var(--text); background: var(--bg4); }

  /* Rarity list mobile — одна колонка, чекбокс-стиль как на десктопе */
  .mf-rarity-grid {
    display: grid; grid-template-columns: 1fr; gap: 4px;
  }
  .mf-rarity-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: transparent;
    border: 1px solid transparent; border-radius: 8px;
    color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.15s; user-select: none;
    min-width: 0; line-height: 1.25;
    overflow-wrap: break-word; word-break: break-word;
  }
  .mf-rarity-chip:hover { background: var(--bg3); }
  .mf-rarity-chip.active {
    background: var(--bg3); border-color: currentColor;
  }
  .mf-rarity-chip .mf-dot {
    width: 16px; height: 16px; border-radius: 3px;
    border: 1.5px solid currentColor;
    background: transparent !important;
    flex-shrink: 0; position: relative;
    transition: background 0.15s;
  }
  .mf-rarity-chip.active .mf-dot {
    background: currentColor !important;
  }
  .mf-rarity-chip.active .mf-dot::after {
    content: ''; position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
  }

  .mf-footer {
    flex-shrink: 0; padding: 14px 20px;
    background: var(--bg2); border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  }
  .mf-footer-apply {
    width: 100%;
    padding: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; border-radius: 10px;
    font-family: var(--font); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
  }
  .mf-footer-apply:hover:not(:disabled) {
    transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124, 58, 237,0.35);
  }
  .mf-footer-apply:disabled { opacity: 0.5; cursor: not-allowed; }

  /* ===== LAYOUT ===== */
  .layout { display: grid; grid-template-columns: 264px 1fr; gap: 0; min-height: calc(100vh - 61px); }

  /* ===== SIDEBAR ===== */
  aside.sidebar {
    background: var(--bg2); border-right: 1px solid var(--border);
    padding: 20px 16px; position: sticky; top: 61px;
    height: calc(100vh - 61px); overflow-y: auto;
  }
  aside.sidebar::-webkit-scrollbar { width: 6px; }
  aside.sidebar::-webkit-scrollbar-track { background: transparent; }
  aside.sidebar::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

  .filter-group { margin-bottom: 22px; }
  .filter-group:last-child { margin-bottom: 0; }
  .filter-title {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font2); font-size: 14px; font-weight: 700;
    color: var(--text); letter-spacing: 0.8px; text-transform: uppercase;
    padding: 8px 4px; cursor: pointer; user-select: none;
    transition: color 0.2s;
  }
  .filter-title:hover { color: var(--green); }
  .filter-title .chev { transition: transform 0.2s; color: var(--text3); font-size: 10px; }
  .filter-group.collapsed .filter-title .chev { transform: rotate(-90deg); }
  .filter-group.collapsed .filter-body { display: none; }
  .filter-body { padding: 6px 4px 2px; }

  /* Price range */
  .price-inputs { display: flex; gap: 8px; align-items: center; }
  .price-inputs input {
    flex: 1; min-width: 0; padding: 8px 10px;
    background: #000000; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-family: var(--font); font-size: 13px;
    transition: border 0.2s;
  }
  .price-inputs input:focus { outline: none; border-color: var(--border-green); }
  .price-inputs input::-webkit-outer-spin-button,
  .price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .price-inputs input { -moz-appearance: textfield; }
  .price-sep { color: var(--text3); font-size: 14px; }

  /* Checkbox / radio lists */
  .filter-list { display: flex; flex-direction: column; gap: 2px; }
  .filter-option {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 8px; border-radius: 7px; cursor: pointer;
    font-size: 14.5px; color: var(--text2); transition: all 0.15s;
    user-select: none;
  }
  .filter-option:hover { background: var(--bg3); color: var(--text); }
  .filter-option.active { color: var(--green); background: var(--green-dim); }
  .filter-option .check {
    width: 16px; height: 16px; border: 1.5px solid var(--text3);
    border-radius: 4px; flex-shrink: 0; position: relative; transition: all 0.15s;
  }
  .filter-option.active .check {
    background: var(--green); border-color: var(--green);
  }
  .filter-option.active .check::after {
    content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
    border: solid #14082a; border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
  .filter-option .cnt { margin-left: auto; font-size: 12.5px; color: var(--text3); font-weight: 600; }
  .filter-option.active .cnt { color: var(--green); }
  /* Radio variant */
  .filter-option.radio .check { border-radius: 50%; }
  .filter-option.radio.active .check::after {
    content: ''; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px;
    border: none; background: #14082a; border-radius: 50%; transform: none;
  }

  /* Knife type chips (sub-filter when "Ножи" is selected) */
  .knife-type-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .knife-chip {
    padding: 6px 10px;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text2); border-radius: 6px;
    font-family: var(--font); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
  }
  .knife-chip:hover {
    background: var(--bg4); color: var(--text); border-color: var(--border-green);
  }
  .knife-chip.active {
    background: var(--green-dim); color: var(--green); border-color: var(--border-green);
  }

  /* Rarity swatches */
  .rarity-list { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .rarity-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: 6px; cursor: pointer;
    font-size: 13px; color: var(--text2); transition: all 0.15s;
    border: 1px solid transparent;
    min-width: 0; line-height: 1.25;
    overflow-wrap: break-word; word-break: break-word;
  }
  .rarity-chip:hover { background: var(--bg3); }
  .rarity-chip.active { background: var(--bg3); border-color: currentColor; }
  .rarity-chip .dot {
    width: 14px; height: 14px; border-radius: 3px;
    border: 1.5px solid currentColor;
    background: transparent !important;
    flex-shrink: 0; position: relative;
    transition: background 0.15s;
  }
  .rarity-chip.active .dot {
    background: currentColor !important;
  }
  .rarity-chip.active .dot::after {
    content: ''; position: absolute;
    left: 3px; top: 0px;
    width: 4px; height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
  }

  .sidebar-reset {
    width: 100%; padding: 10px; background: transparent;
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text2); font-family: var(--font); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin-top: 8px;
  }
  .sidebar-reset:hover { color: var(--text); border-color: var(--border-green); background: var(--bg3); }

  /* ===== MAIN ===== */
  main.catalog { padding: 20px 28px 40px; min-width: 0; position: relative; }

  /* Breadcrumb / header */
  .page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
  .page-head h1 {
    font-family: var(--font2); font-size: 28px; font-weight: 800;
    color: var(--text); letter-spacing: -0.3px; line-height: 1.1;
  }
  .page-head h1 span { color: var(--green); }
  .page-head .subtitle { font-size: 13px; color: var(--text3); margin-top: 4px; }

  /* Toolbar */
  .toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    position: sticky; top: 62px; z-index: 40;
    background: var(--bg);
    padding: 18px 0 20px;
    margin: 0 0 4px;
  }
  .toolbar::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -20px; height: 20px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
  }
  .search-wrap { position: relative; flex: 1; min-width: 240px; }
  .search-wrap svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text3); pointer-events: none;
  }
  .search-wrap input {
    width: 100%; padding: 11px 14px 11px 40px;
    background: #000000; border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-family: var(--font); font-size: 14px;
    transition: all 0.2s;
    appearance: none; -webkit-appearance: none;
  }
  /* Force styling with stronger selector and hide native search UI */
  input#searchInput, input#mSearchInput {
    appearance: none !important; -webkit-appearance: none !important;
    background: #000000 !important;
    color: var(--text) !important;
  }
  input#searchInput::-webkit-search-cancel-button,
  input#mSearchInput::-webkit-search-cancel-button,
  input#searchInput::-webkit-search-decoration,
  input#mSearchInput::-webkit-search-decoration { -webkit-appearance: none; display: none; }
  .search-wrap input:focus { outline: none; border-color: var(--border-green); background: #0b0b0e; }
  .search-wrap input::placeholder { color: var(--text3); }

  .sort-wrap { position: relative; }
  .sort-btn {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px;
    background: #000000; border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
  }
  .sort-btn:hover { border-color: var(--border-green); }
  .sort-btn .chev { color: var(--text3); font-size: 10px; transition: transform 0.2s; }
  .sort-btn.open .chev { transform: rotate(180deg); }
  .sort-menu {
    position: fixed; z-index: 130;
    background: var(--bg3); border: 1px solid var(--border-green); border-radius: 10px;
    min-width: 220px; padding: 6px; display: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .sort-menu.open { display: block; }
  .sort-item {
    padding: 9px 12px; border-radius: 6px; cursor: pointer;
    font-size: 13px; color: var(--text2); transition: all 0.15s;
  }
  .sort-item:hover { background: var(--bg4); color: var(--text); }
  .sort-item.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

  .icon-tool-btn {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .icon-tool-btn:hover { color: var(--text); border-color: var(--border-green); }
  .icon-tool-btn.active { color: var(--green); border-color: var(--border-green); background: var(--green-dim); }

  /* Language/Currency dropdowns in nav */
  .nav-dropdown { position: relative; display: inline-block; }
  .nav-dd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 10px; background: transparent; border: none;
    color: var(--text2); cursor: pointer; border-radius: 8px;
    font-family: var(--font); font-size: 13px; font-weight: 600;
    transition: all 0.15s;
  }
  .nav-dd-btn:hover { color: var(--text); background: var(--bg3); }
  .nav-dd-btn .chev { transition: transform 0.2s; opacity: 0.7; }
  .nav-dd-btn.open .chev { transform: rotate(180deg); }
  .nav-dd-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
    background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
    min-width: 170px; padding: 6px; display: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .nav-dd-menu.open { display: block; }
  .nav-dd-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px; background: transparent; border: none;
    color: var(--text); cursor: pointer; border-radius: 6px;
    font-family: var(--font); font-size: 13px; font-weight: 600;
    text-align: left; transition: all 0.15s;
  }
  .nav-dd-item:hover { background: var(--bg4); }
  .nav-dd-item.active { color: var(--green); }

  @media (max-width: 768px) {
    /* На мобильной версии dropdown'ы скрыты — доступны через burger меню */
    .nav-dropdown { display: none; }
  }

  /* Cart pill — на десктопе обычный flex-ребёнок тулбара (идеальное выравнивание),
     на мобилке вырывается через position:fixed и плавает в нижнем правом углу */
  .toolbar-spacer { flex: 1; }
  .cart-pill {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 14px 11px 20px;
    background: var(--bg3); border: 1px solid var(--border); border-radius: 14px;
    color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.25s;
    flex-shrink: 0;
  }
  .cart-pill:hover { border-color: var(--border-green); background: var(--bg4); }
  .cart-pill .cart-pill-price {
    font-family: var(--font2); font-size: 17px; letter-spacing: 0.3px;
    white-space: nowrap; line-height: 1;
  }
  .cart-pill .cart-pill-icon {
    position: relative; display: flex; align-items: center; justify-content: center;
    color: var(--text2); transition: color 0.2s;
  }
  .cart-pill:hover .cart-pill-icon { color: var(--text); }
  .cart-pill .cart-pill-badge {
    position: absolute; top: -7px; right: -7px;
    background: #EB4B4B; color: #fff; font-size: 11px; font-weight: 800;
    min-width: 18px; height: 18px; line-height: 18px; border-radius: 50%;
    text-align: center; padding: 0 5px; font-family: var(--font2);
    border: 2px solid var(--bg3); box-sizing: content-box;
  }
  /* Активное состояние: фиолетовый pill */
  .cart-pill.has-items {
    background: linear-gradient(135deg, #8B5CF6, #6d28d9);
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  }
  .cart-pill.has-items:hover {
    background: linear-gradient(135deg, #7c3aed, #8B5CF6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
  }
  .cart-pill.has-items .cart-pill-icon { color: #fff; }
  .cart-pill.has-items .cart-pill-badge { border-color: #6d28d9; }

  @media (max-width: 768px) {
    .toolbar-spacer { display: none; }
    /* На мобилке корзина вылетает из потока тулбара и становится floating в углу */
    .cart-pill {
      position: fixed; top: auto; bottom: 20px; right: 16px; z-index: 50;
      padding: 12px 14px 12px 20px; border-radius: 999px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.55);
      font-size: 15px;
    }
    .cart-pill .cart-pill-price { font-size: 16px; }
    .cart-pill .cart-pill-icon svg { width: 20px; height: 20px; }
    .cart-pill.has-items { box-shadow: 0 10px 28px rgba(139, 92, 246, 0.55); }
    .cart-pill .cart-pill-badge {
      top: -5px; right: -5px; font-size: 10px;
      min-width: 18px; height: 18px; line-height: 18px;
    }
  }

  /* Round icon buttons group (refresh + favorites) */
  .tool-icons-group {
    display: flex; align-items: center;
    padding: 4px;
    background: #000000; border: 1px solid var(--border); border-radius: 10px;
  }
  .tool-icon-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: transparent; border: none; color: var(--text2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.18s; padding: 0; position: relative;
  }
  .tool-icon-btn:hover { color: var(--text); background: var(--bg4); }
  .tool-icon-btn.active { color: var(--green); }
  /* Избранное — когда фильтр активен, подсвечиваем красным */
  .tool-icon-btn#favBtn.active { color: #EB4B6B; }
  .tool-icon-btn#favBtn.active svg { fill: currentColor; }
  .tool-icon-btn + .tool-icon-btn::before {
    content: ''; position: absolute; left: -1px; top: 20%; bottom: 20%;
    width: 1px; background: var(--border);
  }
  /* На узких экранах скрываем, т.к. в мобильном тулбаре они уже есть */
  @media (max-width: 768px) {
    .tool-icons-group { display: none; }
  }

  /* Active filter chips */
  .active-chips {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 8px; margin-bottom: 14px;
    position: relative; z-index: 1;
  }
  .active-chips:empty { display: none; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--green-dim); border: 1px solid var(--border-green);
    border-radius: 20px; font-size: 12px; line-height: 1.2; color: var(--green); font-weight: 600;
  }
  .chip button {
    background: transparent; border: none; color: var(--green); cursor: pointer;
    font-size: 14px; line-height: 1; padding: 0; margin-left: 2px;
  }
  .chip button:hover { color: var(--text); }

  .result-count {
    font-size: 14px; color: var(--text2);
    margin-top: 8px; margin-bottom: 16px;
    font-weight: 500;
    position: relative; z-index: 1;
    padding: 6px 10px;
    background: var(--bg);
    border-radius: 6px;
    display: inline-block;
  }
  .result-count strong { color: var(--green); font-weight: 700; }
  .result-count #shownCount { color: var(--text); font-weight: 600; }

  /* ===== GRID ===== */
  .grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
  }

  .skin-card {
    background: #000000; border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 12px 12px; cursor: pointer; position: relative; overflow: hidden;
    transition: transform 0.22s, border-color 0.22s, background 0.22s;
    display: flex; flex-direction: column;
  }
  .skin-card:hover {
    transform: translateY(-3px); border-color: var(--border-green);
    background: #0b0b0e;
  }
  .skin-card::before {
    content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
    background: var(--rarity-color, var(--r-milspec)); opacity: 0.9;
  }

  /* Banner card — занимает место карточки скина в гриде */
  .skin-card.banner-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg3);
    display: flex; align-items: stretch; justify-content: center;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  }
  .skin-card.banner-card::before { display: none; }
  .skin-card.banner-card:hover {
    transform: translateY(-3px);
    border-color: #EB4B4B;
    box-shadow: 0 6px 24px rgba(235, 75, 75, 0.35);
    background: var(--bg3);
  }
  .skin-card.banner-card .banner-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform 0.4s;
  }
  .skin-card.banner-card:hover .banner-img { transform: scale(1.03); }
  .skin-card.banner-back .banner-img { object-fit: cover; }

  /* Out-of-stock state — не приглушаем всю карточку через opacity (иначе бейдж
     «Забронирован» тоже блёкнет). Вместо этого притемняем картинку и подсвечиваем
     карточку красной рамкой, а бейдж делаем ярким. */
  .skin-card.out-of-stock { opacity: 1; border-color: rgba(235, 75, 75, 0.55); }
  .skin-card.out-of-stock:hover { transform: none; border-color: rgba(235, 75, 75, 0.85); background: #000000; box-shadow: 0 0 16px rgba(235, 75, 75, 0.30); }
  .skin-card.out-of-stock .card-img { filter: grayscale(0.9) brightness(0.5); }
  .skin-card.out-of-stock .card-name,
  .skin-card.out-of-stock .card-sub,
  .skin-card.out-of-stock .card-price { opacity: 0.5; }
  .skin-card.out-of-stock .rent-btn {
    opacity: 0.4; cursor: not-allowed; pointer-events: none;
  }
  .card-stock-overlay {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    padding: 6px 15px; border-radius: 8px;
    background: rgba(12, 12, 16, 0.88);
    border: 1.5px solid #ff3b3b;
    color: #ff6b6b;
    font-family: var(--font2); font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap; pointer-events: none;
    /* Красный неоновый контур: свечение снаружи и лёгкое внутри */
    box-shadow:
      0 0 6px rgba(255, 59, 59, 0.85),
      0 0 14px rgba(255, 45, 45, 0.55),
      inset 0 0 7px rgba(255, 59, 59, 0.25);
    text-shadow: 0 0 6px rgba(255, 70, 70, 0.55);
    z-index: 3;
  }

  .card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; min-height: 16px; gap: 3px; flex-wrap: nowrap; overflow: hidden; }
  .card-top-left { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; flex-shrink: 1; min-width: 0; }
  .rarity-pill {
    font-size: 8px; font-weight: 700; letter-spacing: 0.4px;
    padding: 2px 5px; border-radius: 20px;
    background: color-mix(in srgb, var(--rarity-color) 15%, transparent);
    color: var(--rarity-color, var(--text2));
    border: 1px solid color-mix(in srgb, var(--rarity-color) 30%, transparent);
    text-transform: uppercase;
  }
  .wear-badge {
    font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 0.5px;
    flex-shrink: 0; white-space: nowrap;
  }

  /* Delivery badge inline inside card-top (next to rarity pill) */
  .card-delivery {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 5px 2px 4px;
    border-radius: 20px;
    font-size: 9px; font-weight: 700; line-height: 1;
    font-family: var(--font);
    flex-shrink: 0;
  }
  .card-delivery.fast {
    background: rgba(59, 130, 246, 0.18);
    color: #60A5FA;
  }
  .card-delivery.slow {
    background: rgba(252, 211, 77, 0.12);
    color: #FCD34D;
  }
  .card-delivery svg {
    width: 9px; height: 9px;
  }

  .card-img {
    height: 115px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    margin: 4px 0 8px; position: relative;
  }
  .card-img svg { width: 100%; height: 100%; display: block; }
  .card-img img { max-width: 92%; max-height: 100%; object-fit: contain; display: block; }

  /* ST (StatTrak™) / Sv (Souvenir) compact tag next to delivery badge */
  .card-st-tag {
    display: inline-flex; align-items: center;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px; font-weight: 800; line-height: 1;
    font-family: var(--font);
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }
  .card-st-tag.stattrak {
    background: rgba(207, 106, 50, 0.15);
    color: #CF6A32;
    border: 1px solid rgba(207, 106, 50, 0.3);
  }
  .card-st-tag.souvenir {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
  }

  .stattrak-label {
    position: absolute; top: 2px; left: 0; font-size: 9px; font-weight: 700;
    color: #CF6A32; letter-spacing: 0.4px;
  }
  .souvenir-label {
    position: absolute; top: 2px; left: 0; font-size: 9px; font-weight: 700;
    color: #FFD700; letter-spacing: 0.4px;
  }

  .card-meta { flex: 0 0 auto; }
  .card-name {
    font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25;
    margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-type { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
  .card-float {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; color: var(--text3); background: var(--bg4);
    padding: 3px 7px; border-radius: 10px; margin-bottom: 10px;
  }
  .card-float code { font-family: var(--font2); color: var(--text2); font-weight: 600; }

  .card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--border); gap: 8px;
    margin-top: auto;
  }
  .price-block { display: flex; flex-direction: column; gap: 1px; }
  .price-old { font-family: var(--font2); font-size: 13.5px; font-weight: 700; color: var(--text3); text-decoration: line-through; text-decoration-color: rgba(124, 58, 237,0.6); line-height: 1; white-space: nowrap; opacity: 0.85; }
  .price-main { font-family: var(--font2); font-size: 19px; font-weight: 800; color: var(--green); line-height: 1; white-space: nowrap; }
  .price-promo { color: #7c3aed; text-shadow: 0 0 10px rgba(124, 58, 237,0.45); font-size: 22px; }
  .price-sub { font-size: 10.5px; color: var(--text3); letter-spacing: 0.3px; text-transform: uppercase; }
  .rent-btn {
    padding: 8px 10px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border); color: var(--text3);
    border-radius: 7px; font-family: var(--font);
    cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 120px; min-height: 32px;
  }
  .rent-btn:hover {
    background: linear-gradient(135deg, #8B5CF6, #6d28d9);
    color: #fff;
    border-color: #6d28d9;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  }
  .rent-btn svg { display: block; }
  /* Добавлен в корзину: розово-красная иконка корзины */
  .rent-btn.in-cart {
    background: rgba(235, 75, 107, 0.1);
    border-color: rgba(235, 75, 107, 0.3);
    color: #EB4B6B;
  }
  .rent-btn.in-cart:hover {
    background: rgba(235, 75, 107, 0.18);
    color: #F97090;
    border-color: rgba(235, 75, 107, 0.45);
  }

  /* Pagination / load more */
  .pagination-wrap { margin-top: 32px; text-align: center; }
  .load-more {
    padding: 14px 36px; background: var(--bg3); border: 1px solid var(--border-green);
    color: var(--green); border-radius: 10px; font-family: var(--font);
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s;
  }
  .load-more:hover { background: var(--green-dim); transform: translateY(-2px); }
  .load-more:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

  /* Empty state */
  .empty-state {
    grid-column: 1 / -1; padding: 60px 20px; text-align: center;
  }
  .empty-state svg { color: var(--text3); margin-bottom: 16px; opacity: 0.5; }
  .empty-state h3 { font-family: var(--font2); font-size: 20px; color: var(--text); margin-bottom: 8px; }
  .empty-state p { color: var(--text3); font-size: 14px; margin-bottom: 20px; }

  /* ===== LIGHTBOX ===== */
  .lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(5, 7, 10, 0.92); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
  }
  .lightbox.open { display: flex; animation: fadeIn 0.18s; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .lb-inner {
    max-width: 1080px; width: 100%; background: var(--bg2);
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    max-height: calc(100vh - 48px);
    display: grid; grid-template-columns: 1fr 380px;
  }
  .lb-close {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(18, 21, 28, 0.85); border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
    transition: all 0.15s;
    backdrop-filter: blur(6px);
  }
  .lb-close:hover { background: var(--bg3); color: var(--text); border-color: var(--text3); }

  /* LEFT COLUMN: title + preview */
  .lb-left {
    padding: 26px 28px; display: flex; flex-direction: column;
    min-height: 420px; position: relative;
  }
  .lb-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 40px; }
  .lb-title {
    font-family: var(--font2); font-size: 22px; font-weight: 700; color: var(--text);
    letter-spacing: 0.2px; line-height: 1.2;
  }
  .lb-title .star { color: var(--text2); }
  .lb-title-copy {
    background: transparent; border: none; color: var(--text3); cursor: pointer;
    width: 26px; height: 26px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .lb-title-copy:hover { color: var(--text); background: var(--bg3); }

  /* Delivery pill (top-left over preview) */
  .lb-delivery {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff; border-radius: 20px;
    font-size: 13px; font-weight: 700; width: fit-content;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  }
  .lb-delivery.slow {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: #FCD34D; border: 1px solid rgba(252, 211, 77, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  /* Chip row below title (success + delivery) */
  .lb-chip-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 12px; margin-bottom: 4px;
  }
  .lb-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px; font-weight: 700;
    white-space: nowrap;
  }
  .lb-chip.success {
    background: rgba(109, 40, 217, 0.12);
    color: #6d28d9;
  }
  .lb-chip.delivery-fast {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
  }
  .lb-chip.delivery-slow {
    background: rgba(252, 211, 77, 0.12);
    color: #FCD34D;
  }

  /* "⋯" button in corner of preview */
  .wear-inline { color: var(--text2); font-weight: 500; }

  /* Float scale (same as before but outside .lb-card spec-rows) */
  .lb-float-scale-wrap {
    padding: 14px 18px 18px;
    border-bottom: 1px solid var(--border);
  }

  /* Large preview area */
  .lb-preview {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 260px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 14px 14px; background-position: 0 0;
    border-radius: 10px; position: relative; overflow: hidden;
    padding: 20px;
  }
  .lb-preview svg { max-width: 100%; max-height: 100%; position: relative; z-index: 1; }
  .lb-preview img { max-width: 92%; max-height: 100%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }

  /* Favorite button inside preview */
  .lb-fav {
    position: absolute; bottom: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }
  @media (hover: hover) {
    .lb-fav:hover { color: #EB4B4B; border-color: #EB4B4B; }
    .lb-fav.active:hover { background: #D63B5A; border-color: #D63B5A; }
  }
  .lb-fav.active {
    color: #fff;
    background: #EB4B6B;
    border-color: #EB4B6B;
  }
  .lb-fav.active svg {
    fill: currentColor;
    stroke: currentColor;
  }

  /* RIGHT COLUMN: specs + price */
  .lb-right {
    background: var(--bg2); padding: 70px 22px 22px; display: flex; flex-direction: column; gap: 14px;
    border-left: 1px solid var(--border); overflow-y: auto;
  }

  /* Rare float badge (top) */
  .lb-rare-badge {
    align-self: flex-end; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; background: linear-gradient(135deg, #8B5CF6, #6d28d9);
    color: #fff; border-radius: 20px; font-size: 12px; font-weight: 700;
  }
  .lb-rare-badge svg { opacity: 0.9; }

  /* Float scale card */
  .lb-card {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px;
  }
  .lb-float-scale {
    position: relative; height: 6px; border-radius: 3px; margin-bottom: 14px;
    background: linear-gradient(to right, #3B82F6 0%, #3B82F6 7%, #8b5cf6 7%, #8b5cf6 15%, #FACC15 15%, #FACC15 38%, #F97316 38%, #F97316 45%, #EF4444 45%, #EF4444 100%);
  }
  .lb-float-scale .marker {
    position: absolute; top: -9px; width: 16px; height: 24px;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
  }
  .lb-float-scale .marker::before {
    content: ''; width: 2px; height: 20px; background: var(--text);
    margin-top: 4px;
  }
  .lb-float-scale .marker svg {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    color: var(--text);
  }

  .lb-spec-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
  }
  .lb-spec-row + .lb-spec-row { border-top: 1px solid var(--border); }
  .lb-spec-label { color: var(--text2); font-weight: 500; }
  .lb-spec-val { color: var(--text); font-weight: 700; font-family: var(--font2); font-size: 15px; }

  /* Price recommendation card */
  .lb-price-card { padding: 0; overflow: hidden; }
  .lb-price-card .row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 18px;
    font-size: 13px;
  }
  .lb-price-card .row + .row { border-top: 1px solid var(--border); }
  .lb-price-card .row .label { color: var(--text2); }
  .lb-price-card .row .val { font-family: var(--font2); font-weight: 700; color: var(--text); }
  .lb-price-card .row .val.green { color: var(--green); }
  .lb-price-card .row .val.plus { color: var(--text2); font-weight: 600; }
  .lb-price-card .note {
    padding: 0 18px 14px; font-size: 11px; color: var(--text3); line-height: 1.4;
  }

  /* Final price + action */
  .lb-final {
    background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px;
  }
  .lb-final-label { font-size: 12px; color: var(--text3); margin-bottom: 6px; letter-spacing: 0.3px; }
  .lb-final-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
  .lb-final-price {
    font-family: var(--font2); font-size: 28px; font-weight: 800; color: var(--text); line-height: 1;
  }
  .lb-discount {
    display: inline-flex; align-items: center;
    padding: 3px 8px; background: rgba(124, 58, 237, 0.15); color: var(--green);
    border-radius: 6px; font-size: 12px; font-weight: 700; font-family: var(--font2);
  }
  .lb-action {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #8B5CF6, #6d28d9);
    color: #fff; border: none; border-radius: 10px;
    font-family: var(--font); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
  }
  .lb-action:hover:not(:disabled) {
    transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  }
  .lb-action:disabled { opacity: 0.5; cursor: not-allowed; }
  .lb-action.in-cart {
    background: rgba(235, 75, 107, 0.15); color: #EB4B6B;
    border: 1px solid rgba(235, 75, 107, 0.3);
  }
  .lb-action.in-cart:hover { background: rgba(235, 75, 107, 0.22); transform: translateY(-1px); box-shadow: none; }

  @media (max-width: 860px) {
    /* Мобильный лайтбокс — одна колонка во весь экран. z-index подняли выше
       nav (он имеет z-index 200 в мобильной версии), чтобы карточка скина
       перекрывала шапку сайта и была truly fullscreen. */
    .lightbox { padding: 0; align-items: stretch; z-index: 250 !important; }
    .lb-inner {
      grid-template-columns: 1fr;
      max-width: none; width: 100%;
      max-height: 100vh; max-height: 100dvh;
      height: 100vh; height: 100dvh;
      border-radius: 0; border: none;
      overflow-y: auto; overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      display: flex; flex-direction: column;
    }
    /* Крестик закрытия — fixed относительно viewport, всегда виден поверх
       контента карточки даже при прокрутке. Учитываем notch на iPhone через
       safe-area-inset-top. */
    .lb-close {
      position: fixed;
      top: max(env(safe-area-inset-top, 12px), 12px);
      right: 12px;
      z-index: 100;
      width: 44px; height: 44px;
      background: rgba(18, 21, 28, 0.9);
      backdrop-filter: blur(8px);
      color: var(--text);
      border-radius: 50%;
      flex-shrink: 0;
      padding: 0; line-height: 1;
      display: flex; align-items: center; justify-content: center;
    }
    .lb-close:hover { background: rgba(40, 45, 55, 0.95); }
    .lb-left {
      padding: 0 16px 16px;
      min-height: auto; display: flex; flex-direction: column;
    }
    /* Preview тянем на всю ширину, высокий. Добавляем солидный padding-top
       чтобы между «шапкой» (крестик закрытия) и фото оставался воздух. */
    .lb-preview {
      min-height: 260px; max-height: 300px;
      border-radius: 0;
      padding: 80px 16px 20px;
      margin: 0 -16px;
      background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
      background-size: 14px 14px;
      position: relative;
    }
    .lb-preview img { max-width: 88%; max-height: 100%; }

    /* Hide desktop favorite button on preview */
    .lb-fav { display: none; }

    /* Title row - под preview */
    .lb-title-row {
      margin: 18px 0 0;
      padding-right: 0;
      align-items: flex-start;
    }
    .lb-title {
      font-size: 20px; line-height: 1.3;
      word-break: break-word; font-weight: 700;
    }
    .lb-title-copy { width: 22px; height: 22px; flex-shrink: 0; margin-top: 4px; }

    /* Правая колонка продолжение контента снизу */
    .lb-right {
      border-left: none; border-top: none;
      padding: 4px 16px 0;
      gap: 12px;
      overflow: visible;
    }
    .lb-rare-badge { display: none; }

    /* Карточки */
    .lb-card { padding: 0; }
    .lb-float-scale-wrap {
      padding: 14px 16px 16px;
    }
    .lb-spec-row {
      padding: 11px 16px;
      font-size: 13px;
    }
    .lb-spec-val { font-size: 14px; }

    /* Price card */
    .lb-price-card .row { padding: 11px 16px; }

    /* Final price - закрепляется снизу */
    .lb-final {
      position: fixed; left: 0; right: 0; bottom: 0;
      z-index: 10;
      background: var(--bg2);
      border-radius: 0;
      border: none; border-top: 1px solid var(--border);
      margin: 0;
      padding: 16px 16px 20px;
    }
    /* Зарезервируем снизу место под фиксированный CTA чтобы контент не обрезался */
    .lb-right {
      padding-bottom: 160px !important;
    }
    .lb-final-label { display: none; }
    .lb-final-price-row {
      margin-bottom: 8px; align-items: center;
    }
    .lb-final-price { font-size: 28px; font-weight: 800; }
    .lb-discount { display: none; }
    .lb-action {
      padding: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px;
    }
    .lb-action-row {
      display: flex; gap: 8px; align-items: stretch;
    }
    .lb-action-row .lb-action { flex: 1; }
    .lb-fav-mobile {
      width: 50px; flex-shrink: 0;
      background: var(--bg3); border: 1px solid var(--border);
      color: var(--text2); border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.12s, border-color 0.12s, color 0.12s;
      -webkit-tap-highlight-color: transparent;
    }
    .lb-fav-mobile.active {
      color: #fff;
      background: #EB4B6B;
      border-color: #EB4B6B;
    }
    .lb-fav-mobile.active svg { fill: currentColor; stroke: currentColor; }
    @media (hover: hover) {
      .lb-fav-mobile:hover { color: #EB4B6B; border-color: #EB4B6B; }
      .lb-fav-mobile.active:hover {
        background: #D63B5A; border-color: #D63B5A;
      }
    }

    body.lock { overflow: hidden; }
  }

  /* Desktop: hide mobile-only favorite button */
  @media (min-width: 861px) {
    .lb-fav-mobile { display: none; }
  }

  /* ===== CART DRAWER ===== */
  /* ═══ КОРЗИНА — dropdown-стиль ═══ */
  .cart-drawer {
    /* Плавающая корзина в правом нижнем углу — над кнопкой поддержки (bottom:24px)
       и кнопкой корзины (bottom:92px). z-index выше липкого тулбара (90), чтобы
       поисковая строка её больше не перекрывала. */
    position: fixed; top: auto; bottom: 108px; right: 24px;
    width: 360px; max-height: calc(100vh - 200px);
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 210;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(10px) scale(0.98);
    transform-origin: bottom right; pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(139, 92, 246, 0.08);
    overflow: hidden;
  }
  .cart-drawer.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .cart-header {
    padding: 18px 20px 14px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .cart-header h3 { font-family: var(--font2); font-size: 20px; font-weight: 700; color: var(--text); }
  .cart-header h3 span { color: var(--text3); font-weight: 500; font-size: 15px; margin-left: 4px; }
  .cart-header .icon-btn { color: var(--text3); }
  .cart-header .icon-btn:hover { color: var(--text); }

  .cart-items {
    flex: 1; overflow-y: auto; padding: 0 14px 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .cart-item {
    display: flex; flex-direction: column;
    padding: 8px; background: var(--bg3);
    border: 1px solid var(--border); border-radius: 10px;
    position: relative; min-width: 0;
  }
  .cart-item-img {
    width: 100%; height: 56px; background: var(--bg4); border-radius: 6px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-left: 3px solid var(--rarity-color, var(--r-milspec));
    overflow: hidden;
    margin-bottom: 8px;
  }
  .cart-item-img svg, .cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
  .cart-item-info {
    min-width: 0; display: flex; flex-direction: column; gap: 4px;
  }
  .cart-item-info .card-delivery { align-self: flex-start; }
  .cart-item-wear { font-size: 11px; color: var(--text2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-item-price { font-family: var(--font2); font-size: 13px; font-weight: 700; color: var(--text); }
  .cart-item-remove {
    background: rgba(235, 75, 107, 0.12); border: 1px solid rgba(235, 75, 107, 0.3);
    color: #EB4B6B; cursor: pointer;
    width: 100%; height: 24px; border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; margin-top: 4px;
    transition: all 0.15s;
  }
  .cart-item-remove:hover { background: rgba(235, 75, 107, 0.22); color: #fff; }
  .cart-item-remove svg { width: 12px; height: 12px; }

  .cart-empty {
    padding: 40px 20px; text-align: center; color: var(--text3); font-size: 13px;
    grid-column: 1 / -1;
  }
  .cart-empty svg { opacity: 0.4; margin-bottom: 16px; }

  .cart-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
  }
  .cart-checkout {
    width: 100%; padding: 14px 18px;
    background: #6d28d9; color: #fff; border: none;
    border-radius: 10px; font-family: var(--font); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .cart-checkout:hover:not(:disabled) { background: #6D28D9; box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4); }
  .cart-checkout:disabled { opacity: 0.4; cursor: not-allowed; }
  .cart-checkout.needs-topup { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #14082a; box-shadow: 0 4px 16px rgba(124, 58, 237,0.35); }
  .cart-checkout.needs-topup:hover { background: #6d28d9; color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237,0.5); }
  .cart-balance-row { font-size: 13px; color: var(--text2); text-align: center; padding: 14px 16px 10px; display: none; align-items: center; gap: 6px; justify-content: center; font-weight: 500; }
  .cart-balance-row.visible { display: flex; }
  .cart-balance-row.warn { color: #EB4B4B; }
  .cart-balance-row svg { flex-shrink: 0; }
  .cart-checkout-total { font-family: var(--font2); font-size: 16px; font-weight: 800; }

  .backdrop {
    position: fixed; inset: 0; background: rgba(5,7,10,0.7); z-index: 70;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
    backdrop-filter: blur(2px);
  }
  .backdrop.open { opacity: 1; pointer-events: auto; }

  /* ═══ NOTIFICATIONS PANEL ═══ */
  .notif-btn { position: relative; }
  .notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #EC4899; box-shadow: 0 0 0 2px var(--bg2);
  }
  .notif-drawer {
    position: fixed; top: 72px; right: 20px;
    width: 380px; max-height: calc(100vh - 90px);
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 80;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(-8px) scale(0.98);
    transform-origin: top right; pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    overflow: hidden;
  }
  .notif-drawer.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  /* ВНИМАНИЕ: HTML использует класс .notif-drawer-header (с -drawer-), а не .notif-header.
     Ранее тут был .notif-header — он не матчился и header выпадал в столбик. */
  .notif-drawer-header {
    padding: 18px 20px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .notif-drawer-header h3 { font-family: var(--font2); font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
  .notif-drawer-header .icon-btn { color: var(--text3); flex-shrink: 0; }
  .notif-drawer-header .icon-btn:hover { color: var(--text); }
  .notif-list {
    flex: 1; overflow-y: auto; padding: 0 16px 16px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .notif-drawer-empty {
    padding: 40px 20px; text-align: center; color: var(--text3); font-size: 14px;
  }
  /* колокольчик-иконку в empty state НЕ показываем (пользователь попросил убрать) */
  .notif-drawer-empty .ndi-icon { display: none; }
  .notif-card {
    display: flex; flex-direction: column; gap: 12px;
  }
  .notif-card-top {
    display: flex; align-items: center; justify-content: space-between;
  }
  .notif-offer-id {
    font-family: var(--font2); font-size: 15px; font-weight: 700; color: var(--text);
  }
  .notif-offer-date {
    font-size: 12px; color: var(--text3); margin-top: 2px;
  }
  .notif-timer {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(234, 179, 8, 0.15);
    color: #EAB308;
    padding: 6px 10px; border-radius: 8px;
    font-family: var(--font2); font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px;
  }
  .notif-timer.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
  }
  .notif-timer.expired {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text3);
  }
  .notif-timer svg { width: 14px; height: 14px; flex-shrink: 0; }
  .notif-text {
    font-size: 13px; color: var(--text2); line-height: 1.5;
  }
  .notif-items {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  }
  .notif-item {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px;
    display: flex; flex-direction: column;
    position: relative; min-width: 0;
  }
  .notif-item-img {
    width: 100%; height: 56px; background: var(--bg4); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    border-left: 3px solid var(--rarity-color, var(--r-milspec));
    overflow: hidden; margin-bottom: 6px;
  }
  .notif-item-img svg, .notif-item-img img { width: 100%; height: 100%; object-fit: contain; }
  .notif-item-name {
    font-size: 10px; color: var(--text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px; line-height: 1.2;
  }
  .notif-item-price {
    font-family: var(--font2); font-size: 12px; font-weight: 700; color: var(--text);
  }

  @media (max-width: 860px) {
    .notif-drawer {
      top: auto; bottom: 0; right: 0; left: 0; width: 100%;
      max-width: 100vw; max-height: 33vh; height: auto;
      border-radius: 16px 16px 0 0;
      border: none; border-top: 1px solid var(--border);
      transform-origin: bottom; transform: translateY(100%);
      box-shadow: 0 -10px 40px rgba(0,0,0,0.45);
    }
    .notif-drawer.open { transform: translateY(0); }
    .notif-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .notif-item { padding: 6px; }
    .notif-item-img { height: 52px; }
    .notif-item-name { font-size: 10px; }
    .notif-item-price { font-size: 11px; }
  }

  /* ═══ RENT STATUS MODAL ═══ */
  .rent-modal {
    position: fixed; inset: 0; z-index: 130;
    display: none; align-items: center; justify-content: center;
    padding: 32px 20px; overflow-y: auto;
    background: rgba(5,7,10,0.88); backdrop-filter: blur(6px);
  }
  .rent-modal.open { display: flex; animation: fadeIn 0.18s ease; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .rent-modal-inner {
    position: relative;
    width: 100%; max-width: 440px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 28px 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  }
  .rent-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(40, 45, 55, 0.6); border: 1px solid var(--border);
    color: var(--text2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .rent-modal-close:hover { background: var(--bg4); color: var(--text); }

  .rent-icon {
    position: relative; width: 80px; height: 80px; margin: 8px auto 20px;
  }
  .rent-icon-cart {
    width: 80px; height: 80px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #C4B5FD;
    display: flex; align-items: center; justify-content: center;
  }
  .rent-icon-cart svg { width: 44px; height: 44px; }
  .rent-icon-check {
    position: absolute; right: -4px; top: -4px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
  }

  .rent-title {
    font-family: var(--font2); font-size: 22px; font-weight: 800;
    text-align: center; color: var(--text); line-height: 1.3;
    margin-bottom: 12px;
  }
  .rent-desc {
    text-align: center; font-size: 13px; color: var(--text3);
    line-height: 1.55; margin-bottom: 22px;
  }

  .rent-steps {
    display: flex; flex-direction: column; position: relative;
    margin-bottom: 20px;
  }
  .rent-step {
    display: grid; grid-template-columns: 28px 1fr; gap: 14px;
    align-items: center;
    padding: 10px 0;
    position: relative;
  }
  /* Вертикальная линия, соединяющая точки */
  .rent-step:not(:last-child)::before {
    content: ''; position: absolute;
    left: 13px; top: 34px; bottom: -4px;
    width: 2px; background: var(--border);
  }
  .rent-step.done:not(:last-child)::before,
  .rent-step.current:not(:last-child)::before {
    background: rgba(139, 92, 246, 0.3);
  }
  .rent-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg2); color: var(--text3);
    flex-shrink: 0; transition: all 0.2s;
  }
  .rent-step.done .rent-step-dot {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    color: #C4B5FD;
  }
  .rent-step.current .rent-step-dot {
    border-color: #6d28d9;
    background: #6d28d9;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.18);
  }
  .rent-step-text {
    font-size: 13px; color: var(--text2); line-height: 1.4;
  }
  .rent-step.current .rent-step-text { color: var(--text); font-weight: 600; }
  .rent-spinner { animation: rentSpin 1.2s linear infinite; transform-origin: center; }
  @keyframes rentSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

  /* Подсказка про уведомления внутри rent-modal. На десктопе скрыта (там окно
     уведомлений открывается автоматически), показывается только на мобильной. */
  .rent-notif-hint { display: none; }

  @media (max-width: 768px) {
    .rent-notif-hint {
      display: block;
      margin: 18px 0 2px;
      padding: 14px 16px;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      text-align: center;
      font-size: 12.5px;
      line-height: 1.55;
      color: var(--text2);
    }
  }

  @media (max-width: 520px) {
    .rent-modal { padding: 0; }
    .rent-modal-inner {
      max-width: 100%; min-height: 100vh; border-radius: 0;
      padding: 60px 20px 24px;
    }
    .rent-title { font-size: 20px; }
  }

  /* ═══ SUPPORT WIDGET ═══ */
  .support-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.5);
    z-index: 251;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .support-fab:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(109, 40, 217, 0.6); }
  .support-fab:active { transform: scale(0.96); }
  .support-fab .sf-icon-close { display: none; }
  .support-fab.open .sf-icon-open { display: none; }
  .support-fab.open .sf-icon-close { display: block; }

  .support-widget {
    position: fixed; bottom: 94px; right: 24px;
    width: 360px; height: min(620px, calc(100vh - 120px));
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    z-index: 250;
    opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.2s, transform 0.2s;
  }
  .support-widget.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

  .sw-header {
    padding: 18px 20px 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
  }
  .sw-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sw-header-text { min-width: 0; }
  .sw-title { font-family: var(--font2); font-size: 17px; font-weight: 700; line-height: 1.2; }
  .sw-subtitle {
    font-size: 12px; opacity: 0.85; margin-top: 3px;
    display: flex; align-items: center; gap: 6px;
  }
  .sw-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7c3aed; box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
  }

  .sw-tabs {
    display: flex; background: linear-gradient(135deg, rgba(124, 58, 237,0.9), rgba(109, 40, 217,0.9));
    flex-shrink: 0;
  }
  .sw-tab {
    flex: 1; padding: 12px 8px;
    background: transparent; border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 600;
    position: relative;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .sw-tab.active { color: #fff; }
  .sw-tab.active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 2px; background: #fff; border-radius: 2px 2px 0 0;
  }
  .sw-tab + .sw-tab { border-left: 1px solid rgba(255,255,255,0.15); }

  .sw-body {
    flex: 1; overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .sw-date-chip {
    align-self: center;
    padding: 4px 12px; background: var(--bg4);
    border-radius: 12px;
    font-size: 11px; color: var(--text3);
    margin: 4px 0;
  }
  .sw-msg { display: flex; flex-direction: column; }
  .sw-msg-in { align-self: flex-start; }
  .sw-msg-out { align-self: flex-end; }
  .sw-bubble {
    background: var(--bg3); color: var(--text);
    padding: 10px 13px; border-radius: 12px 12px 12px 4px;
    font-size: 13px; line-height: 1.45;
    word-wrap: break-word; overflow-wrap: break-word;
  }
  .sw-bubble-out {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border-radius: 12px 12px 4px 12px;
  }
  .sw-time {
    font-size: 10px; color: var(--text3);
    margin-top: 3px; align-self: flex-end;
  }

  /* FAQ tab */
  .sw-faq-item {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
    margin-bottom: 8px;
  }
  .sw-faq-q {
    font-size: 13px; font-weight: 600; color: var(--text);
    margin-bottom: 6px;
  }
  .sw-faq-a {
    font-size: 12px; color: var(--text2); line-height: 1.5;
  }

  /* Input bar */
  .sw-input-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg3);
    flex-shrink: 0;
  }
  .sw-input-bar input {
    flex: 1; min-width: 0;
    padding: 10px 12px; background: transparent;
    border: none; outline: none;
    color: var(--text); font-family: var(--font); font-size: 13px;
  }
  .sw-input-bar input::placeholder { color: var(--text3); }
  .sw-ib-btn, .sw-send {
    background: transparent; border: none; color: var(--text3);
    cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: color 0.12s, background 0.12s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .sw-ib-btn:hover { color: var(--text); }
  .sw-send {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
  }
  .sw-send:hover { filter: brightness(1.1); }

  @media (max-width: 560px) {
    .support-fab {
      top: 58%; bottom: auto; right: 0;
      transform: translateY(-50%);
      width: 40px; height: 56px;
      border-radius: 28px 0 0 28px;
      box-shadow: -6px 8px 22px rgba(109, 40, 217, 0.45);
      padding: 0 4px 0 8px;
      justify-content: center;
    }
    .support-fab:hover { transform: translateY(-50%) scale(1.04); }
    .support-fab:active { transform: translateY(-50%) scale(0.96); }
    .support-fab .sf-icon-open,
    .support-fab .sf-icon-close { width: 22px; height: 22px; }
    .support-widget {
      bottom: 0; right: 0; left: 0; top: 0;
      width: 100%; height: 100%;
      border-radius: 0; border: none;
      transform-origin: center;
      transform: translateY(20px) scale(0.98);
    }
    .support-widget.open { transform: translateY(0) scale(1); }
  }

  /* Tap optimization для мобилок — убирает 300ms delay и серый highlight при тапе */
  .topup-modal .preset-btn,
  .topup-modal .pay-method,
  .topup-modal .country-btn,
  .topup-modal .country-item,
  .topup-modal .switch-cur,
  .topup-modal .topup-close,
  .topup-modal .pay-btn,
  .topup-modal .sticky-pay {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* ═══ TOPUP MODAL ═══ */
  .topup-modal {
    position: fixed; inset: 0; z-index: 120;
    display: none; align-items: center; justify-content: center;
    padding: 40px 20px; overflow-y: auto;
    background: rgba(5,7,10,0.88); backdrop-filter: blur(6px);
  }
  .topup-modal.open { display: flex; animation: fadeIn 0.2s; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .topup-inner {
    width: 100%; max-width: 900px;
    margin: auto;             /* fallback для длинного контента — не обрезает сверху */
    flex-shrink: 0;           /* в flex-контексте не сжимаемся, остаёмся scrollable */
    background: var(--bg2);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 28px 32px 32px; position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .topup-close {
    position: absolute; top: 18px; right: 18px;
    width: 38px; height: 38px; border-radius: 10px;
    background: transparent; border: none; color: var(--text2);
    font-size: 24px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s;
  }
  .topup-close:hover { color: var(--text); background: var(--bg3); }
  .topup-title {
    font-size: 22px; font-weight: 700;
    color: var(--text); margin-bottom: 28px; padding-right: 40px; letter-spacing: 0.2px;
  }
  .topup-grid {
    display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start;
  }
  .topup-section { margin-bottom: 22px; }
  .topup-section:last-child { margin-bottom: 0; }
  .topup-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px;
  }
  .topup-label .switch-cur {
    font-size: 12px; color: var(--green); cursor: pointer; font-weight: 600;
    background: transparent; border: none; padding: 0;
  }
  .topup-label .switch-cur:hover { text-decoration: underline; }
  .topup-amount-input { position: relative; }
  .topup-amount-input input {
    width: 100%; padding: 14px 16px 14px 36px;
    background: var(--bg3); border: 1.5px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 20px; font-weight: 700;
    transition: border 0.18s; font-family: inherit;
  }
  .topup-amount-input input:focus { outline: none; border-color: var(--border-green); }
  .topup-amount-input input::-webkit-outer-spin-button,
  .topup-amount-input input::-webkit-inner-spin-button {
    -webkit-appearance: none; appearance: none; margin: 0;
  }
  .topup-amount-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
  .topup-amount-input .cur-symbol {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 20px; font-weight: 700; color: var(--text3);
    pointer-events: none;
  }
  .topup-limit { font-size: 12px; color: var(--text3); margin-top: 8px; }
  .topup-limit.warn { color: #F59E0B; }
  .preset-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 14px;
  }
  .preset-btn {
    padding: 12px; background: var(--bg3); border: 1.5px solid var(--border);
    color: var(--text); font-size: 16px; font-weight: 700;
    border-radius: 10px; cursor: pointer; font-family: inherit;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  @media (hover: hover) {
    .preset-btn:hover { border-color: var(--border-green); background: var(--bg4); }
  }
  .preset-btn.active { border-color: var(--green); background: var(--green-dim); color: var(--green); }
  .country-select { position: relative; }
  .country-btn {
    width: 100%; padding: 13px 16px; background: var(--bg3); border: 1.5px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.12s, border-color 0.12s;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  @media (hover: hover) {
    .country-btn:hover { border-color: var(--border-green); }
  }
  .country-btn .chev { color: var(--text3); font-size: 11px; transition: transform 0.15s; }
  .country-btn.open .chev { transform: rotate(180deg); }
  .country-btn .flag, .country-item .flag {
    width: 22px; height: 15px; margin-right: 8px; border-radius: 2px;
    flex-shrink: 0; display: inline-block; vertical-align: middle;
  }
  .country-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 10;
    background: var(--bg3); border: 1px solid var(--border-green); border-radius: 10px;
    max-height: 240px; overflow-y: auto; padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5); display: none;
  }
  .country-menu.open { display: block; }
  .country-item {
    padding: 9px 12px; border-radius: 6px; cursor: pointer;
    font-size: 13px; color: var(--text2);
    transition: background 0.12s, color 0.12s;
    display: flex; align-items: center; gap: 8px;
  }
  @media (hover: hover) {
    .country-item:hover { background: var(--bg4); color: var(--text); }
  }
  .country-item.active { background: var(--green-dim); color: var(--green); font-weight: 600; }
  .pay-methods {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .pay-method {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--bg3); border: 1.5px solid var(--border);
    border-radius: 10px; cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
  }
  @media (hover: hover) {
    .pay-method:hover { border-color: var(--border-green); background: var(--bg4); }
  }
  .pay-method.active { border-color: var(--green); background: var(--green-dim); }
  .pay-method-icon {
    width: 40px; height: 28px; background: var(--bg4); border-radius: 5px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 10px; font-weight: 800; color: var(--text2);
  }
  .pay-method-icon.card-stack {
    background: transparent; height: 28px;
    width: auto; min-width: 116px;
    padding: 0; display: flex; align-items: center;
  }
  .card-chip {
    width: 44px; height: 30px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid var(--bg2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    background: #fff;
    position: relative; overflow: hidden;
  }
  .card-chip + .card-chip { margin-left: -10px; }
  .card-chip.visa-card {
    font-family: Arial, sans-serif; color: #1A1F71;
    font-size: 10px; font-weight: 900; font-style: italic;
    letter-spacing: 0.3px;
  }
  .card-chip.mc-card { gap: 0; }
  .card-chip.mc-card .mc-red,
  .card-chip.mc-card .mc-yellow {
    width: 15px; height: 15px; border-radius: 50%; display: block;
  }
  .card-chip.mc-card .mc-red { background: #EB001B; }
  .card-chip.mc-card .mc-yellow { background: #F79E1B; margin-left: -7px; mix-blend-mode: multiply; }
  .card-chip.mir-card {
    background: #0F754E; font-family: Arial, sans-serif;
    color: #fff; font-size: 11px; font-weight: 900;
    letter-spacing: 0.2px; position: relative;
  }
  .card-chip.mir-card::after {
    content: ''; position: absolute;
    top: 4px; right: 4px; width: 10px; height: 4px;
    background: linear-gradient(90deg, #0099FF, #00B0FF);
    border-radius: 4px 4px 4px 0;
  }
  .pay-method-icon.crypto-stack {
    background: transparent; height: 36px;
    width: auto; min-width: 116px;
    display: flex; align-items: center; padding: 0;
  }
  .crypto-chip {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 15px;
    border: 2px solid var(--bg2);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  .crypto-chip + .crypto-chip { margin-left: -10px; }
  .crypto-chip.btc  { background: #F7931A; }
  .crypto-chip.usdt { background: #26A17B; font-size: 17px; }
  .crypto-chip.eth  { background: #627EEA; }
  .crypto-chip.more { background: #EB4B6B; font-size: 11px; letter-spacing: 0.2px; }
  .pay-method-info { min-width: 0; }
  .pay-method-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
  .pay-method-fee { font-size: 11px; color: var(--text3); }

  /* Summary card (right column) */
  .topup-summary {
    background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
    padding: 22px; position: sticky; top: 0;
  }
  .summary-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
  }
  .summary-head-text {
    font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  }
  .summary-head-text small { display: block; font-size: 11px; color: var(--text3); font-family: var(--font); font-weight: 500; margin-top: 3px; letter-spacing: 0.2px; }
  .summary-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #14082a; font-family: inherit; font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  /* Аватарка пользователя в summary, тот же размер и форма что и .summary-logo */
  .summary-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    background: var(--bg3);
  }
  .summary-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; font-size: 13px;
  }
  .summary-row .label { color: var(--text2); }
  .summary-row .value { color: var(--text); font-weight: 600; }
  .summary-row .value.plus { color: var(--text3); font-weight: 500; }
  .summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
  .summary-total {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 8px 0 18px; gap: 10px;
  }
  .summary-total-label { font-size: 13px; color: var(--text2); font-weight: 600; }
  .summary-total-label .info-dot {
    display: inline-block; width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid var(--text3); color: var(--text3); font-size: 10px;
    line-height: 12px; text-align: center; margin-left: 4px; cursor: help;
    font-family: serif; font-style: italic;
  }
  .summary-total-val {
    font-family: inherit; font-size: 28px; font-weight: 800; color: var(--text); line-height: 1;
  }
  .pay-btn {
    width: 100%; padding: 14px; background: var(--green); color: #14082a; border: none;
    border-radius: 10px; font-family: var(--font); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .pay-btn:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 8px 24px rgba(124, 58, 237,0.3); }
  .pay-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .refund-note {
    font-size: 11px; color: var(--text3); text-align: center; margin-top: 14px; line-height: 1.5;
  }
  .refund-note a { color: var(--green); text-decoration: none; }
  .refund-note a:hover { text-decoration: underline; }

  @media (max-width: 768px) {
    .topup-modal {
      padding: 0; align-items: stretch;
      overflow: hidden;
      z-index: 250;          /* выше чем мобильный nav (z-index: 200) */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(5, 7, 10, 0.96);
    }
    .topup-inner {
      max-width: none; border-radius: 0; border: none;
      height: 100vh; height: 100dvh; min-height: 0;
      padding: 0;
      display: flex; flex-direction: column;
      overflow: hidden;
    }
    .topup-header-mobile {
      flex-shrink: 0;
      padding: 18px 18px 14px;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      background: var(--bg2);
    }
    .topup-header-mobile .topup-title {
      font-size: 18px; margin: 0; padding: 0;
    }
    .topup-inner > .topup-close { display: none; }
    .topup-inner > .topup-title { display: none; }
    .topup-scroll {
      flex: 1 1 auto; min-height: 0;
      overflow-y: auto; -webkit-overflow-scrolling: touch;
      padding: 20px 18px 24px;
    }
    .topup-grid { grid-template-columns: 1fr; gap: 20px; }
    .pay-methods { grid-template-columns: 1fr; }
    .preset-grid { grid-template-columns: 1fr 1fr 1fr; }
    .topup-summary { display: none; }
    .topup-sticky-cta {
      flex-shrink: 0;
      display: flex; flex-direction: column; gap: 10px;
      padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
      background: var(--bg2);
      border-top: 1px solid var(--border);
      box-shadow: 0 -12px 28px rgba(0,0,0,0.5);
    }
    .topup-sticky-cta .sticky-total-row {
      display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    }
    .topup-sticky-cta .sticky-total-label {
      font-size: 14px; color: var(--text2); font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
    }
    .topup-sticky-cta .sticky-total-val {
      font-size: 26px; font-weight: 800; color: var(--text); line-height: 1;
    }
    .topup-sticky-cta .sticky-pay {
      width: 100%; padding: 14px;
      background: linear-gradient(135deg, #8B5CF6, #6d28d9);
      color: #fff; border: none; border-radius: 12px;
      font-family: inherit; font-size: 15px; font-weight: 700;
      cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .topup-sticky-cta .sticky-pay:hover:not(:disabled) {
      transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139,92,246,0.4);
    }
    .topup-sticky-cta .sticky-pay:disabled { opacity: 0.4; cursor: not-allowed; }
    .topup-sticky-cta .sticky-note {
      display: flex; align-items: center; justify-content: center; gap: 6px;
      font-size: 11px; color: var(--text3); line-height: 1;
    }
  }
  @media (min-width: 769px) {
    .topup-sticky-cta { display: none !important; }
    .topup-header-mobile { display: none !important; }
    .topup-scroll { display: contents; }
  }

  /* Mobile filter toggle */
  .filter-toggle-mobile {
    display: none; align-items: center; gap: 8px; padding: 11px 16px;
    background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600;
    cursor: pointer;
  }
  .filter-toggle-mobile:hover { border-color: var(--border-green); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    aside.sidebar {
      position: fixed; top: 61px; left: 0; z-index: 60;
      width: 300px; max-width: 85vw; height: calc(100vh - 61px);
      transform: translateX(-100%); transition: transform 0.3s ease;
      box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    aside.sidebar.open { transform: translateX(0); }
    .filter-toggle-mobile { display: inline-flex; }
  }
  /* ===== MOBILE NAV DRAWER ===== */
  .mobile-nav-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85vw;
    background: var(--bg2); border-left: 1px solid var(--border);
    z-index: 90; transform: translateX(100%); transition: transform 0.3s ease;
    padding: 0 0 24px 0; display: flex; flex-direction: column; gap: 0;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  .mnd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; flex-shrink: 0;
  }
  .mnd-header-title {
    font-family: inherit; font-size: 15px; font-weight: 700;
    color: var(--text); letter-spacing: 0.5px;
  }
  .mnd-logo-link { display: flex; align-items: center; text-decoration: none; }
  .mnd-logo-img { height: 26px; width: auto; display: block; opacity: 0.95; }
  .mnd-logo-link:hover .mnd-logo-img { opacity: 1; }
  .mnd-close-btn {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text2); cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.18s; flex-shrink: 0;
  }
  .mnd-close-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border-green); }
  .mnd-body { padding: 0 16px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .mobile-nav-drawer.open { transform: translateX(0); }
  .mobile-nav-drawer .mnd-user {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--bg3); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 6px;
  }
  .mobile-nav-drawer .mnd-user .mnd-avatar {
    width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg,#7c3aed,#6d28d9);
    display: flex; align-items: center; justify-content: center;
    color: #14082a; font-family: var(--font2); font-size: 18px; font-weight: 800;
    flex-shrink: 0;
  }
  .mobile-nav-drawer .mnd-user .mnd-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-nav-drawer .mnd-user-info { min-width: 0; flex: 1; }
  .mobile-nav-drawer .mnd-user-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-nav-drawer .mnd-user-status { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 5px; margin-top: 3px; }
  .mobile-nav-drawer .mnd-user-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
  .mobile-nav-drawer a, .mobile-nav-drawer button.mnd-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 8px;
    color: var(--text2); font-family: var(--font); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all 0.18s;
    background: transparent; border: none; cursor: pointer; text-align: left; width: 100%;
  }
  .mobile-nav-drawer a:hover, .mobile-nav-drawer button.mnd-item:hover { background: var(--bg3); color: var(--text); }
  .mobile-nav-drawer a.active { color: var(--green); background: var(--green-dim); }
  .mobile-nav-drawer .mnd-divider { height: 1px; background: var(--border); margin: 8px 4px; }
  .mnd-body > .mnd-section-label:first-of-type { margin-top: 4px; }
  /* Copyright в мобильном меню */
  .mnd-copyright {
    text-align: center; font-size: 10px; color: var(--text3);
    line-height: 1.5; padding: 4px 8px 0; flex-shrink: 0; font-family: var(--font);
  }
  .mnd-copyright .mnd-cp-brand { color: var(--green); font-weight: 600; }
  /* Trustpilot widget */
  .mnd-trustpilot {
    margin-top: 12px; padding: 14px; border-radius: 12px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    flex-shrink: 0;
  }
  .mnd-tp-header { display: flex; align-items: center; gap: 7px; }
  .mnd-tp-logo {
    font-family: var(--font2); font-size: 16px; font-weight: 800;
    color: var(--text); letter-spacing: 0.2px;
  }
  .mnd-tp-star-icon { color: #00B67A; flex-shrink: 0; }
  .mnd-tp-stars { display: flex; gap: 4px; }
  .mnd-tp-star {
    width: 34px; height: 34px; background: #00B67A; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .mnd-tp-star svg { display: block; }
  .mnd-tp-text {
    font-size: 11px; color: var(--text2); text-align: center; line-height: 1.5;
    font-family: var(--font);
  }
  .mnd-tp-text strong { color: var(--text); font-weight: 700; }
  .mobile-nav-drawer button.mnd-item.danger { color: #EB4B4B; }
  .mobile-nav-drawer button.mnd-item.danger:hover { background: rgba(235,75,75,0.1); }
  /* Mobile nav: section label */
  .mnd-section-label {
    font-size: 10px; font-weight: 700; color: var(--text3);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 14px 14px 6px; display: flex; align-items: center; gap: 8px;
  }
  .mnd-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }
  /* Mobile nav: currency row */
  .mnd-cur-row {
    display: flex; gap: 8px; padding: 4px 6px 8px;
  }
  .mnd-cur-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 10px; border-radius: 10px;
    background: var(--bg3); border: 1.5px solid var(--border);
    color: var(--text2); font-family: var(--font2); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px;
  }
  .mnd-cur-btn:hover { border-color: var(--border-green); color: var(--text); background: var(--bg4); }
  .mnd-cur-btn.active {
    border-color: var(--green); background: var(--green-dim);
    color: var(--green); box-shadow: 0 0 0 1px var(--green-glow);
  }
  .mnd-cur-btn .mnd-cur-check {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; opacity: 0.4;
  }
  .mnd-cur-btn.active .mnd-cur-check {
    opacity: 1; background: var(--green); border-color: var(--green);
  }
  .mnd-cur-btn.active .mnd-cur-check svg { display: block; }
  .mnd-cur-btn .mnd-cur-check svg { display: none; }
  /* Mobile nav: item with description */
  .mobile-nav-drawer a.mnd-with-desc, .mobile-nav-drawer button.mnd-item.mnd-with-desc {
    align-items: flex-start;
  }
  .mnd-item-body { display: flex; flex-direction: column; gap: 2px; }
  .mnd-item-title { font-size: 14px; font-weight: 500; color: inherit; line-height: 1.2; }
  .mnd-item-desc { font-size: 11px; color: var(--text3); font-family: var(--font); font-weight: 400; }
  .mobile-nav-drawer a.mnd-with-desc:hover .mnd-item-desc,
  .mobile-nav-drawer button.mnd-item.mnd-with-desc:hover .mnd-item-desc { color: var(--text2); }
  .mnd-arrow { margin-left: auto; color: var(--text3); flex-shrink: 0; }
  /* Info block "Информация" */
  .mnd-info-block {
    border: 1px solid var(--border); border-radius: 10px;
    overflow: visible; margin: 0 0 4px;
  }
  .mnd-info-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px 11px 16px; font-size: 13px; font-weight: 400;
    color: var(--text2); text-decoration: none;
    transition: all 0.15s; border-bottom: 1px solid var(--border);
    font-family: var(--font);
  }
  .mnd-info-link:first-child { border-radius: 10px 10px 0 0; }
  .mnd-info-link:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }
  @media (hover: hover) { .mnd-info-link:hover { background: var(--bg3); color: var(--text); } }
  .mnd-info-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
  @media (hover: hover) { .mnd-info-link:hover .mnd-info-dot { background: var(--green); } }

  .nav-hamburger {
    width: 38px; height: 38px; border-radius: 10px; background: var(--bg3);
    border: 1px solid var(--border); color: var(--text); cursor: pointer;
    display: none; align-items: center; justify-content: center;
    padding: 0; transition: all 0.2s; flex-direction: column; gap: 4px;
  }
  .nav-hamburger:hover { border-color: var(--border-green); }
  .nav-hamburger span {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
    transition: all 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Second & third mobile bars (hidden on desktop) */
  .m-balance-bar, .m-toolbar {
    display: none;
  }

  @media (max-width: 768px) {
    /* === ROW 1: compact nav (logo + notif + cart + burger) === */
    nav { padding: 10px 14px; gap: 10px; }
    .nav-links { display: none; }
    .logo-text { font-size: 18px; letter-spacing: 1px; }
    .logo-svg { height: 28px; }
    .logo-img { height: 26px; }
    /* Hide balance + topup + avatar from top nav (they move to row 2 / burger) */
    .balance-pill { display: none; }
    .topup-btn { display: none; }
    .user-wrap { display: none; }
    .nav-right .icon-btn[aria-label="Уведомления"] { width: 36px; height: 36px; }
    /* Hamburger shows on mobile */
    .nav-hamburger { display: flex; }

    /* === ROW 2: balance bar + Top-up button === */
    .m-balance-bar {
      display: flex; align-items: center; justify-content: center; gap: 12px;
      padding: 10px 14px; background: var(--bg2);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 57px; z-index: 41;
    }
    .m-balance-chip {
      display: flex; align-items: center; gap: 8px;
      padding: 6px 10px 6px 6px; background: var(--bg3);
      border: 1px solid var(--border); border-radius: 9px; flex-shrink: 0;
    }
    .m-balance-chip .m-coin {
      width: 26px; height: 26px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      font-family: var(--font2); font-weight: 800; font-size: 12px;
    }
    .m-balance-chip .m-coin.green { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #14082a; }
    .m-balance-chip .m-coin.purple { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; }
    .m-balance-chip .m-coin.amber { background: linear-gradient(135deg,#F59E0B,#D97706); color: #fff; }
    .m-balance-chip .m-bal-info { display: flex; flex-direction: column; line-height: 1.1; }
    .m-balance-chip .m-bal-main { font-size: 14px; font-weight: 700; color: var(--text); }
    .m-balance-chip .m-bal-sub { font-size: 10px; color: var(--text3); margin-top: 1px; }
    .m-topup-btn {
      padding: 8px 16px;
      background: linear-gradient(135deg, #7c3aed, #6d28d9);
      color: #fff; border: none; border-radius: 8px;
      font-family: var(--font); font-size: 12px; font-weight: 700;
      cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
    }
    .m-topup-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124, 58, 237,0.35); }

    /* === ROW 3: compact toolbar (circle buttons + sort) === */
    .m-toolbar {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 14px; background: var(--bg);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 56px; z-index: 40;
      /* Слегка подтягиваем вверх, чтобы не было видно фона между panels */
      margin-top: -1px;
    }
    .m-tool-btn {
      width: 36px; height: 36px; border-radius: 50%;
      background: transparent; border: none; color: var(--text2);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.18s; position: relative; flex-shrink: 0;
    }
    .m-tool-btn:hover { background: var(--bg3); color: var(--text); }
    /* Избранное — когда фильтр активен, подсвечиваем красным */
    .m-tool-btn#mFavBtn.active { color: #EB4B6B; background: rgba(235, 75, 107, 0.15); }
    .m-tool-btn#mFavBtn.active svg { fill: currentColor; }
    .m-sort-pill {
      display: flex; align-items: center; justify-content: center; gap: 7px;
      padding: 7px 12px; background: transparent;
      border: none; color: var(--text); cursor: pointer;
      font-family: var(--font); font-size: 13px; font-weight: 500; flex: 1;
      min-width: 0;
    }
    .m-sort-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .m-sort-pill .chev { font-size: 10px; color: var(--text3); flex-shrink: 0; }
    /* ─── Inline-поиск в m-toolbar — замещает .m-sort-pill при клике на иконку лупы ─── */
    .m-search-inline {
      display: none;                /* по умолчанию скрыт, показывается через .searching */
      flex: 1; min-width: 0;
      align-items: center; gap: 8px;
      padding: 0 10px; height: 100%;
      background: var(--bg3);
      border-radius: 8px;
      color: var(--text);
    }
    .m-search-inline input {
      flex: 1; min-width: 0;
      background: transparent; border: none; outline: none;
      color: var(--text); font-family: inherit; font-size: 13px;
      padding: 8px 0;
    }
    .m-search-inline input::placeholder { color: var(--text3); }
    .m-search-inline-close {
      width: 24px; height: 24px; border-radius: 6px;
      background: transparent; border: none; color: var(--text3);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; flex-shrink: 0; padding: 0;
    }
    .m-search-inline-close:hover { color: var(--text); background: var(--bg4); }
    /* Когда в toolbar активен поиск — скрываем sort + иконку поиска (она теперь внутри),
       но фильтры/обновить/избранное остаются */
    .m-toolbar.searching .m-sort-pill,
    .m-toolbar.searching .m-tool-btn[aria-label="Поиск"] { display: none; }
    .m-toolbar.searching .m-search-inline { display: flex; }
    .m-tool-btn.filters-btn .fbadge {
      position: absolute; top: 0; right: 0;
      background: #EB4B4B; color: #fff; font-size: 10px; font-weight: 800;
      width: 16px; height: 16px; line-height: 12px; border-radius: 50%;
      text-align: center; padding: 0;
      border: 2px solid var(--bg);
      font-family: var(--font2);
    }

  /* Mobile search overlay — shown only via JS trigger on mobile */
  .m-search-overlay { display: none !important; }
  @media (max-width: 768px) {
    .m-search-overlay.open { display: flex !important; }
  }

  @media (max-width: 768px) {
    /* Search overlay for mobile */
    .m-search-overlay {
      position: fixed; top: 0; left: 0; right: 0; z-index: 95;
      background: var(--bg2); padding: 10px 14px;
      align-items: center; gap: 10px;
      border-bottom: 1px solid var(--border);
      transform: translateY(-100%); transition: transform 0.2s;
    }
    .m-search-overlay.open { display: flex; transform: translateY(0); }
    .m-search-overlay input {
      flex: 1; padding: 10px 14px; background: var(--bg3);
      border: 1px solid var(--border-green); border-radius: 10px;
      color: var(--text); font-family: var(--font); font-size: 14px;
    }
    .m-search-overlay input:focus { outline: none; }
    .m-search-overlay button {
      background: transparent; border: none; color: var(--text2);
      cursor: pointer; padding: 8px; font-size: 18px;
    }

    /* Hide desktop toolbar on mobile, but keep cart pill inside visible (it uses position:fixed) */
    .toolbar { display: contents; position: static; padding: 0; margin: 0; }
    .toolbar::after { display: none; }
    .toolbar > :not(.cart-pill) { display: none; }

    main.catalog { padding: 14px 14px 32px; }
    .page-head { margin-bottom: 14px; }
    .page-head h1 { font-size: 22px; }
    .page-head .subtitle { font-size: 12px; }
    /* Карточки на мобиле раньше зажимались в 248px и контент с длинным
       названием (вторая строка) переполнял ячейку, выезжая за её границы.
       minmax(248px, auto) даёт строкам растягиваться при необходимости —
       все карточки в одной строке всё равно одинаковой высоты (CSS Grid
       выравнивает row по самой высокой ячейке). */
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: minmax(248px, auto); gap: 10px; }
    .card-img { height: 95px; }
    .card-name { font-size: 12px; }
    .price-main { font-size: 17px; }
    .rent-btn {
      padding: 8px 10px; font-size: 10px;
      background: linear-gradient(135deg, #8B5CF6, #6d28d9);
      color: #fff;
      border-color: #6d28d9;
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
      min-width: 0;
    }
    .rent-btn:hover {
      background: linear-gradient(135deg, #7c3aed, #8B5CF6);
    }
    .cart-drawer {
      top: auto; bottom: 0; right: 0; left: 0; width: 100%;
      max-width: 100vw; max-height: 85vh; height: auto;
      border-radius: 16px 16px 0 0;
      border: none; border-top: 1px solid var(--border);
      transform-origin: bottom; transform: translateY(100%);
      box-shadow: 0 -10px 40px rgba(0,0,0,0.45);
    }
    .cart-drawer.open { transform: translateY(0); }
    .cart-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
    .cart-item { padding: 6px; }
    .cart-item-img { height: 52px; }
    .cart-item-wear { font-size: 10px; }
    .cart-item-price { font-size: 12px; }
    .cart-item-info { gap: 3px; }
    .cart-item-remove { height: 22px; }
    .cart-item-remove svg { width: 11px; height: 11px; }
    .lb-preview { padding: 24px 16px; min-height: 180px; }
    .lb-preview svg { max-width: 200px; max-height: 150px; }
    .lb-fav { width: 38px; height: 38px; bottom: 10px; right: 10px; }
    .lb-fav svg { width: 18px; height: 18px; }
    .lb-body { padding: 18px 20px; }
    .lb-title { font-size: 20px; }
    .lb-price-val { font-size: 22px; }
    .lb-action { padding: 11px 20px; font-size: 13px; }
  }

  } /* close pre-existing unclosed @media (max-width:768px) — fixes a CSS bug in the original catalog */

    /* ═══ AUTH REQUIRED MODAL (Steam login prompt) ═══ */
  .auth-modal {
    position: fixed; inset: 0; z-index: 10001;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(8, 5, 18, 0.78);
    backdrop-filter: blur(6px);
    animation: authFade 0.2s ease;
  }
  .auth-modal.open { display: flex; }
  @keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes authPop {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .auth-card {
    width: 100%; max-width: 360px;
    background: #1f1730;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 36px 28px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    animation: authPop 0.22s ease;
  }
  .auth-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px;
    background: transparent; border: none;
    color: #9b95ad; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.15s;
  }
  .auth-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
  .auth-icon-wrap {
    width: 84px; height: 84px;
    margin: 4px auto 22px;
    border-radius: 50%;
    background: #3d3157;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .auth-icon-wrap .steam-svg { width: 44px; height: 44px; color: #cfc8e0; }
  .auth-warn {
    position: absolute; bottom: -4px; right: -4px;
    width: 30px; height: 30px;
    background: #fbbf24;
    border-radius: 50%;
    border: 3px solid #1f1730;
    display: flex; align-items: center; justify-content: center;
    color: #1a1305; font-weight: 900; font-size: 18px;
    font-family: var(--font2);
    line-height: 1;
  }
  .auth-title {
    font-family: var(--font2);
    font-size: 22px; font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
  }
  .auth-desc {
    font-size: 14px; line-height: 1.5;
    color: #9b95ad;
    margin-bottom: 26px;
    padding: 0 8px;
  }
  .auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--green);
    color: #0D0F14;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
  }
  .auth-btn:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35); }
  .auth-btn:active { transform: scale(0.98); }

  /* ═══ NAV / MOBILE DRAWER (transferred from index.html, identical) ═══ */
  /* NAV */
  nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 64px;
    background: rgba(13,15,20,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 200;
  }
  .logo { display: flex; align-items: center; gap: 10px; }
  .logo-text { font-family: var(--font2); font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
  .logo-text span { color: var(--green); }
  nav ul { display: flex; list-style: none; gap: 2px; }
  nav ul a { display: block; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; border-radius: 6px; letter-spacing: 0.4px; transition: all 0.2s; }
  nav ul a:hover { color: var(--text); background: var(--bg3); }
  nav ul a.active { color: #0D0F14; background: var(--green); font-weight: 600; }
  nav ul a.active:hover { background: var(--green); color: #0D0F14; }
  .nav-right { display: flex; align-items: center; gap: 8px; }

  /* CURRENCY/COUNTRY SELECTOR */
  .selector-group { display: flex; align-items: center; gap: 6px; }
  .selector-wrap { position: relative; }
  .selector-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    font-family: var(--font); font-size: 12px; font-weight: 600;
    color: var(--text2); transition: all 0.2s; white-space: nowrap;
  }
  .selector-btn:hover { border-color: var(--border-green); color: var(--text); }
  .selector-btn .flag { font-size: 15px; line-height: 1; }
  .selector-btn .chevron { font-size: 9px; color: var(--text3); transition: transform 0.2s; }
  .selector-btn.open .chevron { transform: rotate(180deg); }
  .dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: var(--radius-lg); min-width: 180px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    display: none; z-index: 300; overflow: hidden;
  }
  .dropdown.open { display: block; }
  .dropdown-title {
    padding: 10px 14px 6px;
    font-size: 10px; font-weight: 700; color: var(--text3);
    letter-spacing: 1px; text-transform: uppercase;
  }
  .dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; cursor: pointer;
    font-size: 13px; color: var(--text2);
    transition: background 0.15s;
  }
  .dropdown-item:hover { background: var(--bg4); color: var(--text); }
  .dropdown-item.selected { color: var(--green); }
  .dropdown-item .flag { font-size: 16px; }

  .nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }

  .btn-steam {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--green); border: none;
    border-radius: var(--radius); cursor: pointer;
    font-family: var(--font); font-size: 13px; font-weight: 700;
    color: #14082a; transition: all 0.2s; white-space: nowrap;
    box-shadow: 0 0 18px rgba(124, 58, 237,0.25);
  }
  .btn-steam:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 0 26px rgba(124, 58, 237,0.4); }
  .steam-icon { width: 18px; height: 18px; }

  /* SUPPORT BADGE */
  .support-badge {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 12px;
    background: rgba(124, 58, 237,0.08); border: 1px solid var(--border-green);
    border-radius: var(--radius); cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--green);
    white-space: nowrap; transition: all 0.2s;
  }
  .support-badge:hover { background: rgba(124, 58, 237,0.15); }
  .support-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--text2); border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile nav drawer */
  .mobile-nav-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85vw;
    background: var(--bg2); border-left: 1px solid var(--border);
    z-index: 9000; transform: translateX(100%); transition: transform 0.3s ease;
    padding: 0 0 24px 0; display: flex; flex-direction: column; gap: 0;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  .mobile-nav-drawer.open { transform: translateX(0); }
  .mnd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; flex-shrink: 0;
    border-bottom: 1px solid var(--border);
  }
  .mnd-logo-text { font-family: var(--font2); font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
  .mnd-logo-text span { color: var(--green); }
  .mnd-close-btn {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text2); cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.18s; flex-shrink: 0;
  }
  .mnd-close-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border-green); }
  .mnd-body { padding: 0 16px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .mobile-nav-drawer a, .mobile-nav-drawer button.mnd-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 8px;
    color: var(--text2); font-family: var(--font); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all 0.18s;
    background: transparent; border: none; cursor: pointer; text-align: left; width: 100%;
  }
  .mobile-nav-drawer a:hover, .mobile-nav-drawer button.mnd-item:hover { background: var(--bg3); color: var(--text); }
  .mobile-nav-drawer a.active { color: var(--green); background: var(--green-dim); }
  .mobile-nav-drawer .mnd-divider { height: 1px; background: var(--border); margin: 8px 4px; }
  .mnd-section-label {
    font-size: 10px; font-weight: 700; color: var(--text3);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 14px 14px 6px; display: flex; align-items: center; gap: 8px;
  }
  .mnd-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .mnd-cur-row { display: flex; gap: 8px; padding: 4px 6px 8px; }
  .mnd-cur-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 10px; border-radius: 10px;
    background: var(--bg3); border: 1.5px solid var(--border);
    color: var(--text2); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px;
  }
  .mnd-cur-btn:hover { border-color: var(--border-green); color: var(--text); background: var(--bg4); }
  .mnd-cur-btn.active { border-color: var(--green); background: var(--green-dim); color: var(--green); box-shadow: 0 0 0 1px rgba(124, 58, 237,0.3); }
  .mnd-cur-btn .mnd-cur-check {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; opacity: 0.4;
  }
  .mnd-cur-btn.active .mnd-cur-check { opacity: 1; background: var(--green); border-color: var(--green); }
  .mnd-cur-btn.active .mnd-cur-check svg { display: block; }
  .mnd-cur-btn .mnd-cur-check svg { display: none; }
  .mnd-info-block { border: 1px solid var(--border); border-radius: 10px; overflow: visible; margin: 0 0 4px; }
  .mnd-info-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; font-size: 13px; font-weight: 400;
    color: var(--text2); text-decoration: none;
    transition: all 0.15s; border-bottom: 1px solid var(--border); font-family: var(--font);
  }
  .mnd-info-link:first-child { border-radius: 10px 10px 0 0; }
  .mnd-info-link:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }
  @media (hover: hover) { .mnd-info-link:hover { background: var(--bg3); color: var(--text); } }
  .mnd-info-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
  @media (hover: hover) { .mnd-info-link:hover .mnd-info-dot { background: var(--green); } }
  .mobile-nav-drawer a.mnd-with-desc, .mobile-nav-drawer button.mnd-item.mnd-with-desc {
    align-items: flex-start;
  }
  .mnd-item-body { display: flex; flex-direction: column; gap: 2px; }
  .mnd-item-title { font-size: 14px; font-weight: 500; color: inherit; line-height: 1.2; }
  .mnd-item-desc { font-size: 11px; color: var(--text3); font-weight: 400; }
  .mobile-nav-drawer a.mnd-with-desc:hover .mnd-item-desc,
  .mobile-nav-drawer button.mnd-item.mnd-with-desc:hover .mnd-item-desc { color: var(--text2); }
  .mnd-arrow { margin-left: auto; color: var(--text3); flex-shrink: 0; margin-top: 2px; }
  .mnd-trustpilot {
    margin-top: 12px; padding: 14px; border-radius: 12px;
    background: var(--bg3); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0;
  }
  .mnd-tp-header { display: flex; align-items: center; gap: 7px; }
  .mnd-tp-logo { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: 0.2px; }
  .mnd-tp-star-icon { color: #00B67A; flex-shrink: 0; }
  .mnd-tp-stars { display: flex; gap: 4px; }
  .mnd-tp-star { width: 34px; height: 34px; background: #00B67A; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mnd-tp-star svg { display: block; }
  .mnd-tp-text { font-size: 11px; color: var(--text2); text-align: center; line-height: 1.5; font-family: var(--font); }
  .mnd-tp-text strong { color: var(--text); font-weight: 700; }
  .mnd-copyright { text-align: center; font-size: 10px; color: var(--text3); line-height: 1.5; padding: 4px 8px 0; flex-shrink: 0; font-family: var(--font); }
  .mnd-copyright .mnd-cp-brand { color: var(--green); font-weight: 600; }
  .mnd-steam-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 13px 16px; margin: 12px 0 6px;
    background: var(--green); color: #14082a;
    border: none; border-radius: 10px;
    font-family: var(--font); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 0 18px rgba(124, 58, 237,0.25);
  }
  .mnd-steam-btn:hover { background: var(--green-dark); box-shadow: 0 0 26px rgba(124, 58, 237,0.4); }
  /* Backdrop */
  .backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
    backdrop-filter: blur(2px);
  }
  .backdrop.open { opacity: 1; pointer-events: auto; }

  @media (max-width: 768px) {
    nav { padding: 0 16px; height: 56px; }
    nav ul { display: none; }
    .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-nav-drawer { top: 0; }
  }

  #catalogLegacyStubs { position: absolute !important; left: -10000px !important; pointer-events: none !important; }


  /* Mobile Steam login button (square, sits left of hamburger) */
  .nav-steam-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--green);
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    margin-right: 8px;
    box-shadow: 0 0 14px rgba(124, 58, 237,0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-steam-mobile:hover { background: var(--green-dark, #6d28d9); }
  .nav-steam-mobile:active { transform: scale(0.94); }
  .nav-steam-mobile img { width: 28px; height: 28px; display: block; pointer-events: none; }
  @media (max-width: 768px) {
    nav { gap: 0; }
    .nav-steam-mobile { display: inline-flex; }
  }
/* ═══════════════════════════════════════════════════════════════════════
   Mobile category chip-bar (горизонтальная полоса под toolbar на мобайле).
   На desktop скрыта целиком (категории доступны через сайдбар слева).
   ═══════════════════════════════════════════════════════════════════════ */
.m-cat-bar { display: none; }

@media (max-width: 768px) {
  .m-cat-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px 4px;
    margin: 0 -16px 8px;            /* выходим за padding main.catalog, чтобы chips касались краёв экрана */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-cat-bar::-webkit-scrollbar { display: none; }

  .m-cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    -webkit-tap-highlight-color: transparent;
  }
  .m-cat-chip:active {
    background: rgba(255, 255, 255, 0.1);
  }
  .m-cat-chip.active {
    background: var(--accent, #8b5cf6);
    color: #051911;
    border-color: var(--accent, #8b5cf6);
    font-weight: 600;
  }
  .m-cat-icon {
    font-size: 14px;
    line-height: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   TOPUP MODAL — на мобиле выравниваем по верху, чтобы видеть заголовок без скролла.
   На десктопе уже centered (см. основной блок .topup-modal выше).
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topup-modal {
    align-items: flex-start;
    padding: 20px 12px;
  }
}

/* ═══ Mobile notification button — рядом с гамбургером на мобиле.
   Прижата к правому краю через margin-left:auto, стиль как у hamburger
   (без фона, без обводки). На desktop скрыта. ═══ */
.nav-notif-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;     /* прижать к правому краю, сразу перед гамбургером */
  margin-right: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, transform 0.1s;
}
.nav-notif-mobile:hover { color: var(--text); }
.nav-notif-mobile:active { transform: scale(0.92); }
.nav-notif-mobile .notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: #EB4B4B;
  border-radius: 50%;
  border: 2px solid var(--bg, #0a0d12);
}
@media (max-width: 768px) {
  .nav-notif-mobile { display: inline-flex; }
}

/* ═══════════════════════════════════════════════════════════════════════
   NOTIF DRAWER — унифицированные стили (как на странице trades).
   Desktop: popup в правом верхнем углу, header горизонтально.
   Mobile: компактный popup 300px в правом верхнем углу.
   ═══════════════════════════════════════════════════════════════════════ */
.notif-drawer {
  position: fixed; top: 70px; right: 16px;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  z-index: 200; opacity: 0; pointer-events: none;
  transform: translateY(-12px) scale(0.97);
  transition: all 0.18s; max-height: 70vh; overflow-y: auto;
}
.notif-drawer.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.notif-drawer .notif-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px;
}
.notif-drawer .notif-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 !important;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-drawer .notif-drawer-header > button,
.notif-drawer .notif-drawer-header .icon-btn {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
.notif-drawer .notif-drawer-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
}
/* Колокольчик-иконку в empty НЕ показываем (по запросу пользователя) */
.notif-drawer .notif-drawer-empty .ndi-icon {
  display: none !important;
}

/* Мобильная оптимизация: компактный popup в правом верхнем углу,
   тот же стиль что на desktop, только меньше */
@media (max-width: 768px) {
  .notif-drawer {
    top: 60px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 300px !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 65vh !important;
    border-radius: 14px !important;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
  }
  .notif-drawer.open { transform: translateY(0) scale(1); }
  .notif-drawer .notif-drawer-header { padding: 14px 16px !important; }
  .notif-drawer .notif-drawer-header h3 { font-size: 16px !important; }
}

/* .sr-only — текст видимый только для поисковых ботов и screen reader'ов.
   Визуально скрыт, но присутствует в DOM и индексируется. */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Прикреплённые файлы в чате поддержки */
.sw-attach-img {
  max-width: 200px; max-height: 200px;
  border-radius: 8px; display: block;
  margin-top: 4px; cursor: zoom-in;
}
.sw-attach-link {
  color: inherit; text-decoration: underline;
  font-size: 12px;
}

/* Layout fixes: support chat wrapping, catalog image centering, notifications, rent modal */
.support-widget .sw-msg {
  max-width: min(85%, 292px) !important;
  min-width: 0 !important;
}
.support-widget .sw-bubble {
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
}

.skin-card {
  min-height: 270px;
}
.card-img {
  width: 100%;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.card-img img,
.card-img svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 92% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}
.card-meta,
.card-footer {
  width: 100%;
}

.notif-drawer .notif-header,
.notif-drawer .notif-drawer-header {
  padding: 18px 20px 14px 22px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.notif-drawer .notif-header h3,
.notif-drawer .notif-drawer-header h3 {
  margin: 2px 0 0 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.notif-drawer .notif-header > button,
.notif-drawer .notif-drawer-header > button,
.notif-drawer .notif-header .icon-btn,
.notif-drawer .notif-drawer-header .icon-btn {
  margin-left: auto !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  align-self: center !important;
}

@media (max-width: 768px) {
  .notif-drawer .notif-header,
  .notif-drawer .notif-drawer-header {
    padding: 16px 16px 13px 18px !important;
  }
  .notif-drawer .notif-header h3,
  .notif-drawer .notif-drawer-header h3 {
    margin-top: 2px !important;
  }
}

@media (max-width: 560px) {
  .skin-card {
    min-height: 248px;
    align-items: stretch;
  }
  .card-img {
    height: 104px !important;
    margin: 5px 0 9px !important;
  }
  .card-img img,
  .card-img svg {
    max-width: 94% !important;
  }
  .rent-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 12px !important;
  }
  .rent-modal-inner {
    min-height: 0 !important;
    max-width: min(440px, 100%) !important;
    border-radius: 16px !important;
    padding: 28px 20px 22px !important;
    margin: auto !important;
  }
}

@media (max-width: 768px) {
  /* overflow-x: clip вместо hidden (база, строка 30). hidden на html/body делает
     их скролл-контейнером и ЛОМАЕТ position: sticky (бары перестают прилипать и
     уезжают со скроллом) — именно поэтому когда-то перешли на position: fixed.
     clip обрезает горизонтальный выход так же, но НЕ создаёт скролл-контейнер,
     поэтому sticky снова работает. hidden оставлен фолбэком для старых браузеров. */
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* ВАЖНО: бары держим на position: sticky, а НЕ fixed.
     В in-app браузере Telegram на iOS при overscroll вся страница вместе с
     fixed-элементами уезжает вверх, и хедер «отклеивается» — контент карточек
     проступает над ним (см. баг Telegram-iOS #1748). sticky живёт в потоке
     документа и от этого не страдает. Поэтому здесь sticky + НЕТ padding-top
     у main (бары занимают своё место в потоке сами). */
  nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 120 !important;
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  /* «Щит» над хедером: непрозрачная заливка, уходящая вверх за пределы экрана.
     В in-app браузере Telegram при overscroll сверху открывается полоса, в которой
     проступают карточки каталога. Этот блок движется вместе с хедером и закрывает
     эту область фоном — никакой «прозрачности над фильтрами» больше не видно. */
  nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 100vh;
    background: var(--bg);
    pointer-events: none;
  }
  /* Тот же «щит», но для модалки карточки товара. .rent-modal — position: fixed
     с overflow-y: auto, поэтому при overscroll сверху (у адресной строки Telegram)
     за ней проступает каталог. Щит делаем position: fixed (absolute обрезался бы
     overflow-ом модалки) — он уходит вверх за экран и закрывает эту зону фоном. */
  .rent-modal {
    background: #05070A !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 0 0 100vh #05070A !important;
  }
  .m-balance-bar {
    position: sticky !important;
    /* Учитываем высоту промо-бара сверху (--sk-promo-h из JS), иначе бар
       прилипает слишком высоко и его перекрывает шапка при скролле. */
    top: calc(var(--sk-promo-h, 0px) + 56px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 119 !important;
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .m-balance-avatar {
    overflow: hidden !important;
    padding: 0 !important;
    background: var(--bg4) !important;
  }
  .m-balance-avatar img,
  .m-balance-avatar-fallback {
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 50% !important;
    margin: auto !important;
  }
  .m-toolbar {
    position: sticky !important;
    top: calc(var(--sk-promo-h, 0px) + 56px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 119 !important;
    background: var(--bg) !important;
    margin-top: 0 !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  body.has-mobile-balance .m-toolbar {
    top: calc(var(--sk-promo-h, 0px) + 121px) !important;
  }
  /* Слайд-скрытие мобильных баров при прокрутке каталога вниз (класс
     body.mbars-hidden ставит catalog.js; снимается при прокрутке вверх или у
     самого верха страницы). Полоса баланса и панель фильтров едут вверх ВМЕСТЕ,
     как один блок, и уходят под шапку; при прокрутке вверх так же выезжают обратно.

     Дистанция общая — calc(-100% - 65px), где 65px это высота полосы баланса
     (структурная разница sticky-top баров: 121px − 56px). Поэтому расстояние
     между ними сохраняется и блок едет как целое, а в конце оба бара полностью
     уходят за шапку (z-index 120) и промо-баннер (z-index 220) — они лежат выше
     баров (z-index 119) и перекрывают их. Шапка и баннер полупрозрачные, поэтому
     параллельно гасим бары по opacity: сквозь стекло ничего не просвечивает.
     У гостя полосы баланса нет — панель едет на свою высоту (правило ниже),
     этого достаточно, чтобы уйти за шапку.

     Только transform/opacity: высоту и поток не трогаем, иначе схлопывание
     sticky-баров сдвинуло бы весь каталог вверх на их высоту. */
  .m-balance-bar,
  .m-toolbar {
    transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.26s ease,
                visibility 0s;
  }
  body.mbars-hidden .m-balance-bar,
  body.mbars-hidden .m-toolbar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.24s ease 0.10s,
                visibility 0s linear 0.36s;
  }
  body.has-mobile-balance.mbars-hidden .m-balance-bar,
  body.has-mobile-balance.mbars-hidden .m-toolbar {
    transform: translateY(calc(-100% - 65px));
  }
  @media (prefers-reduced-motion: reduce) {
    .m-balance-bar, .m-toolbar { transition: none; }
  }
  .sort-menu {
    z-index: 130 !important;
  }
  /* Бары sticky → они в потоке и занимают место сами, padding-top main не нужен
     (иначе появится двойной отступ/пустая полоса под хедером). */
  main.catalog {
    padding-top: 14px !important;
  }
  body.has-mobile-balance main.catalog {
    padding-top: 14px !important;
  }
  body.mf-open nav,
  body.mf-open .m-toolbar,
  body.mf-open .m-balance-bar,
  body.mf-open .nav-notif-mobile,
  body.mf-open .nav-hamburger {
    display: none !important;
  }
  body.mf-open .mf-panel {
    z-index: 10001 !important;
  }
}

/* ── Оплата картой временно отключена (ТЗ Skinly) ── */
.pay-method.disabled{opacity:.55;filter:grayscale(1);cursor:not-allowed;pointer-events:none;position:relative;}
.pay-method.disabled .pay-method-name,.pay-method.disabled .pay-method-fee{color:#8B95A8;}
.soon-badge{display:inline-block;margin-left:6px;padding:1px 7px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#cbd5e1;background:rgba(148,163,184,.18);border:1px solid rgba(148,163,184,.35);border-radius:999px;vertical-align:middle;}

/* ── Иконки типов оружия (ТЗ Skinly, п.13): единый размер/стиль ── */
.wt-ico{width:26px;height:16px;display:inline-block;vertical-align:middle;color:#aab0bd;flex:0 0 auto;}
.filter-option .wt-ico-wrap{display:inline-flex;align-items:center;justify-content:center;width:26px;margin-right:7px;color:#aab0bd;}
.filter-option:hover .wt-ico-wrap,.filter-option.active .wt-ico-wrap{color:#cfd4de;}
.filter-option .wt-ico{width:24px;height:15px;color:inherit;}
.m-cat-chip .m-cat-icon .wt-ico{width:22px;height:14px;color:currentColor;}
.m-cat-chip .m-cat-icon{display:inline-flex;align-items:center;}

/* ── Промо $1: мини-таймер на карточке + красный пульс (ТЗ Skinly) ── */
.price-timer{display:inline-block;margin-top:2px;font-family:var(--font2);font-size:12px;font-weight:700;
  letter-spacing:.3px;color:#c4b5fd;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;}
.price-promo,.price-timer{transition:color .12s ease, text-shadow .12s ease;}
/* «Сердцебиение»: на каждую секунду $1 и время одновременно вспыхивают красным */
body.sk-beat .price-promo{color:#ff3b3b !important;text-shadow:0 0 12px rgba(255,59,59,.85) !important;}
body.sk-beat .price-timer{color:#ff3b3b !important;text-shadow:0 0 10px rgba(255,59,59,.7) !important;}

/* ── Корзина: промо-цена $1 + зачёркнутая исходная ── */
.cart-item-price .cart-price-old{color:var(--text3);text-decoration:line-through;
  text-decoration-color:rgba(124, 58, 237,.6);font-size:12.5px;font-weight:600;opacity:.85;margin-right:4px;}
.cart-item-price .cart-price-new{color:#7c3aed;font-weight:800;}

/* ── Зум скина при наведении в окне просмотра (как на CS.MONEY) ── */
.lb-preview.lb-zoomable { cursor: zoom-in; }
.lb-preview img, .lb-preview svg { transition: transform .18s ease; will-change: transform; }
.lb-preview.lb-zoomable:hover img, .lb-preview.lb-zoomable:hover svg { transition: transform .05s linear; }

/* ── Плавающая корзина на десктопе (всегда видна при скролле, ТЗ Skinly) ── */
@media (min-width: 769px) {
  .cart-pill {
    position: fixed; top: auto; bottom: 92px; right: 24px; z-index: 60;
    border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .cart-pill.has-items {
    box-shadow: 0 10px 34px rgba(109, 40, 217,0.55);
  }
}

/* Когда панель корзины раскрыта — прячем плавающую мини-кнопку корзины, чтобы
   открытая корзина её не перекрывала (плавно, за счёт transition у .cart-pill).
   Класс body.cart-open ставит/снимает openCart()/closeCart(). */
body.cart-open #cartBtn{
  opacity: 0 !important; transform: scale(0.85) !important; pointer-events: none !important;
}

/* ── Цена $1 в окне просмотра скина (зачёркнутая исходная + промо $1) ── */
.lb-final-price-old{font-family:var(--font2);font-size:18px;font-weight:700;color:var(--text3);
  text-decoration:line-through;text-decoration-color:rgba(124, 58, 237,.6);opacity:.85;line-height:1;}
.lb-final-price.lb-final-price-promo{color:#7c3aed;text-shadow:0 0 12px rgba(124, 58, 237,.45);}
