/* ============================================================
   module_page_shop v2 — витрина + админка
   Палитра = переменные темы NEO (:root): --button #363753,
   --money #f4ca80, --span #76ab29, --card #1f1f28,
   --text-default-invert #1b1c24, --transparent-*-w/b.
   ⚠ Глобальное правило темы svg{width:1rem;height:1rem} —
   размеры svg задаём явно везде.
   ============================================================ */

.shp, .shp-modal, .shp-adm {
    --shp-r: var(--br-16, 16px);
    --shp-line: var(--transparent-10-w, rgba(255, 255, 255, .1));
    --shp-line-soft: var(--transparent-5-w, rgba(255, 255, 255, .05));
    color: var(--text-default, #fff);
    font-family: var(--font-family-2, inherit);
}

/* svg в flex-контейнерах не должен схлопываться (у <use> нет своей ширины) */
.shp svg, .shp-modal svg, .shp-adm svg { flex-shrink: 0; }

.shp *, .shp *::before, .shp *::after,
.shp-modal *, .shp-modal *::before, .shp-modal *::after,
.shp-adm *, .shp-adm *::before, .shp-adm *::after { box-sizing: border-box; }

/* ============ КНОПКИ (общие для витрины и админки) ============ */
.shp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--br-10, 10px);
    background: var(--button, #363753);
    color: var(--text-default, #fff);
    font-size: var(--font-size-m, 14px);
    font-weight: var(--font-weight-6, 600);
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-btn:hover { background: var(--button-hover, #424367); color: var(--text-default, #fff); }
.shp-btn svg { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; }
.shp-btn:disabled { background: var(--btn-disabled, #181825); color: var(--text-secondary, #9fa2b9); cursor: not-allowed; }

/* Главный CTA — зелёный акцент темы */
.shp-btn--buy { background: var(--span, #76ab29); color: #fff; }
.shp-btn--buy:hover { background: var(--span, #76ab29); filter: brightness(1.12); }

/* Денежный CTA — золото темы, текст тёмный (инвертный) */
.shp-btn--gold { background: var(--money, #f4ca80); color: var(--text-default-invert, #1b1c24); }
.shp-btn--gold:hover { background: var(--money, #f4ca80); filter: brightness(1.08); color: var(--text-default-invert, #1b1c24); }

.shp-btn--ghost {
    background: transparent;
    border-color: var(--shp-line);
    color: var(--text-default, #fff);
}
.shp-btn--ghost:hover { background: var(--transparent-5-w, rgba(255,255,255,.05)); border-color: var(--button-hover, #424367); }

.shp-btn--danger { background: transparent; border-color: var(--red-20, rgba(255,73,64,.2)); color: var(--red, #ff4940); }
.shp-btn--danger:hover { background: var(--red-10, rgba(255,73,64,.1)); border-color: var(--red, #ff4940); color: var(--red, #ff4940); }

.shp-btn--full { width: 100%; }
.shp-btn--sm { padding: 7px 12px; font-size: var(--font-size-s, 12px); }

.shp-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-icon-btn svg { width: 13px; height: 13px; flex: 0 0 13px; fill: var(--text-secondary, #9fa2b9); }
.shp-icon-btn:hover { border-color: var(--button-hover, #424367); background: var(--transparent-5-w, rgba(255,255,255,.05)); }
.shp-icon-btn:hover svg { fill: var(--text-default, #fff); }
.shp-icon-btn--danger:hover { border-color: var(--red, #ff4940); background: var(--red-10, rgba(255,73,64,.1)); }
.shp-icon-btn--danger:hover svg { fill: var(--red, #ff4940); }

/* ============ ПОЛЯ ============ */
.shp-input {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-input:focus-within { border-color: var(--money, #f4ca80); }
.shp-input svg { width: 15px; height: 15px; flex: 0 0 15px; fill: var(--text-secondary, #9fa2b9); }
.shp-input input {
    width: 100%;
    height: var(--input-height, 41px);
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-default, #fff);
    font-size: var(--font-size-m, 14px);
    font-family: inherit;
}
.shp-input--sm input { height: 36px; font-size: var(--font-size-s, 12px); }

.shp-select {
    height: var(--input-height, 41px);
    padding: 0 12px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-size: var(--font-size-s, 12px);
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
.shp-select:focus { border-color: var(--money, #f4ca80); }

/* Сегментированный переключатель (себе / в подарок, колонки) */
.shp-seg {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-12, 12px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
}
.shp-seg__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: none;
    border-radius: var(--br-8, 8px);
    background: transparent;
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-seg__btn svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
.shp-seg__btn:hover { color: var(--text-default, #fff); }
.shp-seg__btn.active { background: var(--button, #363753); color: var(--text-default, #fff); }
.shp-seg--cols .shp-seg__btn { min-width: 46px; }

/* ============ HERO ============ */
.shp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px 28px;
    margin-bottom: 14px;
    border: 1px solid var(--shp-line);
    border-radius: var(--shp-r);
    background:
        radial-gradient(900px 260px at 0% 0%, var(--money-bg, rgba(244,202,128,.1)), transparent 65%),
        var(--card, #1f1f28);
}
.shp-hero__title {
    margin: 0 0 7px;
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-4xl, 28px);
    font-weight: var(--font-weight-7, 700);
    line-height: 1.15;
}
.shp-hero__sub { margin: 0; max-width: 620px; color: var(--text-secondary, #9fa2b9); font-size: var(--font-size-m, 14px); line-height: 1.5; }
.shp-hero__side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shp-balance {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 16px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-12, 12px);
    background: var(--money-bg, rgba(244,202,128,.1));
}
.shp-balance__label { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); text-transform: uppercase; letter-spacing: .5px; }
.shp-balance__value { font-size: var(--font-size-l, 18px); font-weight: var(--font-weight-7, 700); color: var(--money, #f4ca80); }

/* ============ ВЕЛКОМ НОВИЧКУ: ПИЛЮЛЯ ============
   Плавающая подсказка новичку. Задача — быть заметной, но не закрывать товар:
   поэтому левый нижний угол (справа на мобиле живёт нижняя навигация темы),
   мягкая пульсация вместо мигания и крестик, закрывающий её навсегда. */
.shp-wpill {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--money-bg, rgba(244,202,128,.1));
    border-radius: var(--br-16, 16px);
    background: var(--card, #1f1f28);
    box-shadow: var(--box-shadow-b-30, 0 8px 17px rgba(0,0,0,.3));
    transform: translateY(14px);
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
}
.shp-wpill--in { opacity: 1; transform: translateY(0); }
/* Пульс — отдельный слой под пилюлей: анимируем его, а не саму панель,
   чтобы текст не дрожал и не пересчитывался layout. */
.shp-wpill__pulse {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 var(--money-bg, rgba(244,202,128,.35));
    animation: shpWPulse 2.6s ease-out infinite;
}
@keyframes shpWPulse {
    0%   { box-shadow: 0 0 0 0 rgba(244,202,128,.30); }
    70%  { box-shadow: 0 0 0 14px rgba(244,202,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(244,202,128,0); }
}
.shp-wpill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: var(--br-10, 10px);
    background: var(--money-bg, rgba(244,202,128,.12));
}
.shp-wpill__icon svg { width: 18px; height: 18px; flex: 0 0 18px; fill: var(--money, #f4ca80); }
.shp-wpill__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shp-wpill__text b { font-size: var(--font-size-m, 14px); font-weight: var(--font-weight-7, 700); color: var(--text-default, #fff); line-height: 1.2; }
.shp-wpill__text span { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); line-height: 1.35; }
.shp-wpill__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: var(--br-6, 6px);
    background: transparent;
    cursor: pointer;
}
.shp-wpill__close svg { width: 10px; height: 10px; flex: 0 0 10px; fill: var(--text-secondary, #9fa2b9); }
.shp-wpill__close:hover { background: var(--transparent-5-w, rgba(255,255,255,.05)); }
.shp-wpill__close:hover svg { fill: var(--text-default, #fff); }

/* Пока на экране окно cookie (module_block_cookie_consent), оно занимает тот же
   левый нижний угол. Модуль cookie вешает на body класс ckc-visible и кладёт свою
   высоту в --ckc-h — поднимаемся над ним, а не прячемся под. */
body.ckc-visible .shp-wpill { bottom: calc(var(--ckc-h, 0px) + 30px); }

/* На десктопе слева стоит сайдбар темы (.sidebar, 5rem; 16rem в раскрытом виде)
   с z-index 100 — он перекрывал пилюлю. Отодвигаем её за узкое состояние
   сайдбара; при раскрытии он всё равно ложится поверх, но это на секунды.
   Правый нижний угол занимать нельзя — там кнопка чата темы (.chat_open). */
@media (min-width: 769px) {
    .shp-wpill { left: calc(5rem + 18px); }
}
/* До 768px включительно тема показывает нижнюю панель .tabbar_mobile высотой
   64px — пилюлю поднимаем над ней, иначе она уезжает под навигацию. */
@media (max-width: 768px) {
    .shp-wpill { left: 10px; right: 10px; bottom: 78px; max-width: none; }
    body.ckc-visible .shp-wpill { bottom: calc(var(--ckc-h, 0px) + 90px); }
}
@media (max-width: 560px) {
    .shp-wpill { flex-wrap: wrap; }
    .shp-wpill .shp-btn { width: 100%; }
}

/* ============ ВЕЛКОМ НОВИЧКУ: МОДАЛКА-ИСТОРИЯ ============ */
.shp-wmodal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.shp-wmodal.active { display: flex; }
.shp-wmodal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 14, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.shp-wmodal__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(980px, 100%);
    max-height: min(88vh, 900px);
    overflow: hidden;
    border: 1px solid var(--shp-line);
    border-radius: var(--shp-r);
    background: var(--card, #1f1f28);
    box-shadow: var(--box-shadow-b-30, 0 8px 17px rgba(0,0,0,.3));
    animation: shpWIn .28s ease both;
}
@keyframes shpWIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to   { opacity: 1; transform: none; }
}
/* Полоса прочтения: ширину двигает JS по позиции прокрутки внутри модалки */
.shp-wmodal__progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--transparent-10-w, rgba(255,255,255,.1)); z-index: 3; }
.shp-wmodal__progress i { display: block; height: 100%; width: 0; background: var(--money, #f4ca80); transition: width .12s linear; }
.shp-wmodal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: rgba(20, 20, 28, .72);
    cursor: pointer;
}
.shp-wmodal__close svg { width: 12px; height: 12px; flex: 0 0 12px; fill: var(--text-secondary, #9fa2b9); }
.shp-wmodal__close:hover svg { fill: var(--text-default, #fff); }
.shp-wmodal__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 0 4px; }

/* --- шапка истории --- */
.shp-whero {
    padding: 34px 34px 26px;
    text-align: center;
    border-bottom: 1px solid var(--shp-line-soft);
    background:
        radial-gradient(600px 200px at 50% 0%, var(--money-bg, rgba(244,202,128,.14)), transparent 70%),
        transparent;
}
.shp-whero__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--money, #f4ca80);
}
.shp-whero__title {
    margin: 0 0 8px;
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-4xl, 28px);
    font-weight: var(--font-weight-7, 700);
    line-height: 1.15;
    color: var(--text-default, #fff);
}
.shp-whero__sub { margin: 0 auto; max-width: 560px; font-size: var(--font-size-m, 14px); line-height: 1.55; color: var(--text-secondary, #9fa2b9); }
.shp-whero__stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.shp-wstat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 118px;
    padding: 12px 18px;
    border: 1px solid var(--shp-line-soft);
    border-radius: var(--br-12, 12px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
}
.shp-wstat b { font-size: var(--font-size-xxl, 22px); font-weight: var(--font-weight-8, 800); color: var(--money, #f4ca80); line-height: 1.1; }
.shp-wstat span { font-size: var(--font-size-xs, 10px); text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary, #9fa2b9); }

/* --- экраны лесенкой --- */
.shp-wstep {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    padding: 30px 34px;
    border-bottom: 1px solid var(--shp-line-soft);
}
/* Лесенка: у второго и четвёртого экрана медиа уезжает вправо. Считаем от
   .shp-wmodal__scroll, где первый ребёнок — шапка, поэтому чередование идёт по
   nth-child(odd). Порядок меняется только визуально (order): в разметке всегда
   «медиа → текст», так же читает и скринридер. */
.shp-wstep:nth-child(odd) .shp-wstep__media { order: 2; }
.shp-wstep__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-12, 12px);
    aspect-ratio: 2 / 1;
    background: var(--transparent-3-w, rgba(255,255,255,.03));
}
.shp-wstep__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease;
}
.shp-wstep:hover .shp-wstep__media img { transform: scale(1.06); }
/* мягкое затемнение снизу, чтобы рендер не спорил с текстом рядом */
.shp-wstep__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(12,12,18,.55) 100%);
    pointer-events: none;
}
.shp-wstep__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shp-wstep__num {
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-xl, 20px);
    font-weight: var(--font-weight-8, 800);
    color: transparent;
    -webkit-text-stroke: 1px var(--money, #f4ca80);
    line-height: 1;
}
.shp-wstep__text b { font-size: var(--font-size-l, 18px); font-weight: var(--font-weight-7, 700); color: var(--text-default, #fff); line-height: 1.25; }
.shp-wstep__text p { margin: 0; font-size: var(--font-size-m, 14px); line-height: 1.6; color: var(--text-secondary, #9fa2b9); }
.shp-wstep__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.shp-wstep__tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
    border-radius: 999px;
    background: var(--span-10, rgba(118,171,41,.1));
    font-size: var(--font-size-xs, 10px);
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--span, #76ab29);
}
.shp-wstep__tags svg { width: 11px; height: 11px; flex: 0 0 11px; fill: currentColor; }

/* --- проявление по прокрутке (IntersectionObserver ставит --in) --- */
[data-w-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
[data-w-reveal].shp-w--in { opacity: 1; transform: none; }

/* --- финальный экран --- */
.shp-wcta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 34px 30px;
    background: radial-gradient(600px 200px at 0% 100%, var(--span-10, rgba(118,171,41,.12)), transparent 70%);
}
.shp-wcta__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shp-wcta__text b { font-size: var(--font-size-l, 18px); font-weight: var(--font-weight-7, 700); color: var(--text-default, #fff); }
.shp-wcta__text span { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-wcta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .shp-wmodal { padding: 10px; }
    .shp-wmodal__box { max-height: 92vh; }
    .shp-whero { padding: 26px 18px 20px; }
    .shp-whero__title { font-size: var(--font-size-xxl, 22px); }
    .shp-wstep { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
    /* на мобиле лесенка схлопывается в одну колонку — картинка всегда сверху */
    .shp-wstep:nth-child(odd) .shp-wstep__media { order: 0; }
    .shp-wcta { padding: 20px 18px 24px; }
    .shp-wcta__btns { width: 100%; }
    .shp-wcta__btns .shp-btn { flex: 1 1 auto; }
}

/* Уважаем системную настройку «меньше движения»: ни пульса, ни выездов. */
@media (prefers-reduced-motion: reduce) {
    .shp-wpill { transition: none; }
    .shp-wpill__pulse { animation: none; }
    .shp-wmodal__box { animation: none; }
    [data-w-reveal] { opacity: 1; transform: none; transition: none; }
    .shp-wstep:hover .shp-wstep__media img { transform: scale(1.02); }
}

/* ============ ПОЛОСА «НА ВСЕХ СЕРВЕРАХ» ============
   Заявляет главное преимущество: одна покупка — все серверы и режимы.
   Золото темы (--money) уже занято блоком «Важно», поэтому здесь свой акцент —
   зелёный --span с холодной подсветкой, чтобы полоса читалась как «выгода»,
   а не как предупреждение. */
.shp-allsrv {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
    border-radius: var(--shp-r);
    background:
        linear-gradient(90deg, var(--span-10, rgba(118,171,41,.12)), transparent 55%),
        var(--card, #1f1f28);
}
/* мягкое свечение слева; отдельным слоем, чтобы не мешать содержимому */
.shp-allsrv__glow {
    position: absolute;
    top: -60%;
    left: -80px;
    width: 320px;
    height: 220%;
    pointer-events: none;
    background: radial-gradient(closest-side, var(--span-10, rgba(118,171,41,.18)), transparent 100%);
    filter: blur(6px);
}
.shp-allsrv__main { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; }
.shp-allsrv__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: var(--br-12, 12px);
    background: var(--span-10, rgba(118,171,41,.12));
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
}
.shp-allsrv__icon svg { width: 22px; height: 22px; flex: 0 0 22px; fill: var(--span, #76ab29); }
.shp-allsrv__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shp-allsrv__title {
    font-size: var(--font-size-l, 18px);
    font-weight: var(--font-weight-7, 700);
    line-height: 1.2;
    color: var(--text-default, #fff);
}
.shp-allsrv__num { color: var(--span, #76ab29); }
.shp-allsrv__sub {
    font-size: var(--font-size-s, 12px);
    line-height: 1.5;
    color: var(--text-secondary, #9fa2b9);
    max-width: 560px;
}
/* Чипсы серверов: на узком экране прокручиваются вбок, страницу не растягивают */
.shp-allsrv__list {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    min-width: 0;
}
.shp-allsrv__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--shp-line);
    border-radius: 999px;
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    font-size: var(--font-size-xs, 10px);
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--text-secondary, #9fa2b9);
    white-space: nowrap;
}
.shp-allsrv__chip svg { width: 12px; height: 12px; flex: 0 0 12px; fill: var(--span, #76ab29); }
@media (max-width: 860px) {
    .shp-allsrv { padding: 14px 16px; }
    /* иконка выравнивается по первой строке заголовка, а не по центру блока */
    .shp-allsrv__main { align-items: flex-start; gap: 12px; }
    .shp-allsrv__icon { width: 38px; height: 38px; flex: 0 0 38px; }
    .shp-allsrv__icon svg { width: 19px; height: 19px; flex: 0 0 19px; }
    .shp-allsrv__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .shp-allsrv__list::-webkit-scrollbar { display: none; }
    .shp-allsrv__title { font-size: var(--font-size-m, 14px); }
}

/* ============ СОЦСЕТИ → ПОСТОЯННАЯ СКИДКА ============
   Блок виден только авторизованному игроку, пока не связаны обе соцсети.
   Скидка считается на сервере в DiscountService, здесь только мотивация. */
.shp-social-discount {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--money-bg, rgba(244,202,128,.14));
    border-radius: var(--shp-r);
    background:
        linear-gradient(90deg, var(--money-bg, rgba(244,202,128,.14)), transparent 58%),
        var(--card, #1f1f28);
}
.shp-social-discount__glow {
    position: absolute;
    top: -70%;
    left: -100px;
    width: 340px;
    height: 240%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(244,202,128,.22), transparent 100%);
    filter: blur(8px);
}
.shp-social-discount__main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 360px;
}
.shp-social-discount__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: var(--br-12, 12px);
    background: var(--money-bg, rgba(244,202,128,.12));
    border: 1px solid var(--money-bg, rgba(244,202,128,.16));
}
.shp-social-discount__icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: var(--money, #f4ca80);
}
.shp-social-discount__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.shp-social-discount__title {
    font-size: var(--font-size-l, 18px);
    font-weight: var(--font-weight-7, 700);
    line-height: 1.25;
    color: var(--text-default, #fff);
}
.shp-social-discount__title span {
    color: var(--money, #f4ca80);
    white-space: nowrap;
}
.shp-social-discount__sub {
    max-width: 650px;
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-s, 12px);
    line-height: 1.5;
}
.shp-social-discount__side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.shp-social-discount__checks {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.shp-social-discount__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--button-hover, #424367);
    border-radius: var(--br-8, 8px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-6, 600);
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.2;
}
.shp-social-discount__check svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: currentColor;
}
.shp-social-discount__check.is-ok {
    border-color: var(--span-10, rgba(118,171,41,.18));
    background: var(--span-10, rgba(118,171,41,.12));
    color: var(--span, #76ab29);
}
.shp-social-discount__btn {
    white-space: nowrap;
    text-decoration: none;
}
@media (max-width: 860px) {
    .shp-social-discount {
        align-items: flex-start;
        padding: 14px 16px;
    }
    .shp-social-discount__main {
        align-items: flex-start;
        gap: 12px;
    }
    .shp-social-discount__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .shp-social-discount__icon svg {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
    .shp-social-discount__title {
        font-size: var(--font-size-m, 14px);
    }
    .shp-social-discount__side,
    .shp-social-discount__btn {
        width: 100%;
    }
    .shp-social-discount__side {
        justify-content: flex-start;
    }
}

/* Метка на карточке товара и строка в модалке — то же обещание рядом с ценой */
.shp-card__allsrv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 9px;
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
    border-radius: 999px;
    background: var(--span-10, rgba(118,171,41,.12));
    color: var(--span, #76ab29);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-6, 600);
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.2;
}
.shp-card__allsrv svg { width: 12px; height: 12px; flex: 0 0 12px; fill: currentColor; }
.shp-modal__allsrv {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 5px 11px;
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
    border-radius: 999px;
    background: var(--span-10, rgba(118,171,41,.12));
    color: var(--span, #76ab29);
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    line-height: 1.3;
}
.shp-modal__allsrv svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }

/* ============ NOTICE ============ */
.shp-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--money-bg, rgba(244,202,128,.1));
    border-left: 3px solid var(--money, #f4ca80);
    border-radius: var(--br-10, 10px);
    background: var(--money-bg, rgba(244,202,128,.1));
    font-size: var(--font-size-s, 12px);
    line-height: 1.5;
    color: var(--text-secondary, #9fa2b9);
}
.shp-notice__icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; fill: var(--money, #f4ca80); }
.shp-notice__text b { color: var(--text-default, #fff); }

/* Баннер продления — зелёный акцент темы, чтобы не сливаться с «Важно» (золото).
   Показывается только игроку с истекающей срочной VIP-группой (см. data.php). */
.shp-renew {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--span-10, rgba(118,171,41,.1));
    border-left: 3px solid var(--span, #76ab29);
    border-radius: var(--br-10, 10px);
    background: var(--span-10, rgba(118,171,41,.1));
    font-size: var(--font-size-s, 12px);
    line-height: 1.5;
    color: var(--text-secondary, #9fa2b9);
}
.shp-renew__icon { width: 20px; height: 20px; flex: 0 0 20px; fill: var(--span, #76ab29); }
.shp-renew__text { display: flex; flex-direction: column; min-width: 0; }
.shp-renew__text b { color: var(--text-default, #fff); font-size: var(--font-size-m, 14px); }
.shp-renew__btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 560px) {
    .shp-renew { flex-wrap: wrap; }
    .shp-renew__btn { margin-left: 0; width: 100%; }
}

/* ============ АДМИНКА: НАПОМИНАНИЯ О ПРОДЛЕНИИ ============ */
.shp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    min-width: 0;
}
.shp-stat__label { font-size: var(--font-size-xs, 10px); text-transform: uppercase; letter-spacing: .6px; color: var(--text-secondary, #9fa2b9); }
.shp-stat__value { font-size: var(--font-size-xxl, 22px); font-weight: var(--font-weight-8, 800); color: var(--text-default, #fff); line-height: 1.2; }
.shp-stat__value--accent { color: var(--span, #76ab29); }
.shp-stat__hint { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); opacity: .75; line-height: 1.35; }

/* Список игроков/журнал. Колонки — grid, чтобы шапка не разъезжалась с данными
   (готча: :nth-of-type для скрытия колонок считает все div-ы, а не ячейки). */
.shp-rn { display: flex; flex-direction: column; }
.shp-rn__head, .shp-rn__row {
    display: grid;
    /* 5-я колонка — кнопка «Отправить» в строке (в истории пустая) */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 100px);
    gap: 10px;
    align-items: center;
    padding: 9px 4px;
    font-size: var(--font-size-s, 12px);
}
.shp-rn__head {
    font-size: var(--font-size-xs, 10px);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary, #9fa2b9);
    border-bottom: 1px solid var(--shp-line);
}
.shp-rn__row { border-bottom: 1px solid var(--shp-line); color: var(--text-default, #fff); }
.shp-rn__row:last-child { border-bottom: none; }
.shp-rn__act { display: flex; justify-content: flex-end; }
.shp-rn__steam { font-family: var(--font-mono, monospace); font-size: var(--font-size-xs, 10px); overflow-wrap: anywhere; color: var(--text-secondary, #9fa2b9); }
.shp-rn__done { color: var(--text-secondary, #9fa2b9); opacity: .7; }
.shp-rn__wait { color: var(--span, #76ab29); font-weight: var(--font-weight-6, 600); }
@media (max-width: 700px) {
    .shp-rn__head, .shp-rn__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
    .shp-rn__head span:nth-child(4), .shp-rn__row span:nth-child(4) { display: none; }
}

/* ============ TOOLBAR ============ */
.shp-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.shp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.shp-tab {
    padding: 10px 16px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--card, #1f1f28);
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-tab:hover { color: var(--text-default, #fff); }
.shp-tab.active { background: var(--button, #363753); border-color: var(--button, #363753); color: var(--text-default, #fff); }

.shp-toolbar__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.shp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: transparent;
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-6, 600);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-chip svg { width: 13px; height: 13px; flex: 0 0 13px; fill: currentColor; }
.shp-chip:hover { color: var(--text-default, #fff); border-color: var(--button-hover, #424367); }
.shp-chip.active {
    background: var(--transparent-5-w, rgba(255,255,255,.05));
    border-color: var(--money, #f4ca80);
    color: var(--money, #f4ca80);
}
.shp-search { flex: 1 1 220px; max-width: 320px; }
.shp-sort { display: flex; gap: 6px; }
/* Сплошная кнопка, а не ghost: стоит в одном ряду с чипсами сортировки, и
   ghost (граница в 10% белого) читался как ещё один фильтр, а не как действие.
   Золотая иконка отделяет её от чипсов, не споря с зелёным CTA «Купить». */
.shp-compare-btn { margin-left: auto; }
.shp-compare-btn svg { fill: var(--money, #f4ca80); }

/* ============ GRID / CARD ============ */
.shp-grid {
    display: grid;
    grid-template-columns: repeat(var(--shp-cols, 4), minmax(0, 1fr));
    gap: 14px;
}
.shp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--shp-line);
    border-radius: var(--shp-r);
    background: var(--card, #1f1f28);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.shp-card:hover {
    transform: translateY(-3px);
    border-color: var(--pc, var(--button-hover, #424367));
    box-shadow: var(--box-shadow-b-30, 0 8px 17px 0 rgb(0 0 0 / 30%));
}
.shp-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(280px 150px at 50% 115%, color-mix(in srgb, var(--pc, #888) 30%, transparent), var(--transparent-3-b, rgba(0,0,0,.03)));
}
.shp-card__img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.shp-card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.shp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: var(--br-6, 6px);
    background: var(--transparent-10-w, rgba(255,255,255,.1));
    color: var(--text-default, #fff);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.4;
    backdrop-filter: blur(6px);
}
/* Виды бейджей — маркетинговые акценты */
.shp-badge--hit { background: var(--red, #ff4940); color: #fff; }
.shp-badge--best { background: var(--money, #f4ca80); color: var(--text-default-invert, #1b1c24); }
.shp-badge--new { background: var(--span, #76ab29); color: #fff; }
.shp-badge--sale { background: var(--brand-discord-color, #5865F2); color: #fff; }
.shp-badge--pro {
    background: linear-gradient(135deg, var(--magenta, #E6007E), var(--brand-discord-color, #5865F2));
    color: #fff;
}
.shp-badge--discount { background: var(--red, #ff4940); color: #fff; }

/* Скидка на карточке — лента через правый верхний угол. Отдельный класс, а не
   .shp-badge--discount: тот же бейдж живёт в модалке и списке админки обычным
   прямоугольником. Концы ленты обрезает .shp-card__media{overflow:hidden}. */
.shp-card__ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    width: 122px;
    padding: 5px 0;
    transform: rotate(45deg);
    background: var(--red, #ff4940);
    color: #fff;
    font-size: var(--font-size-s, 12px);
    font-weight: var(--font-weight-8, 800);
    letter-spacing: .8px;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
    pointer-events: none;
}

.shp-card__body { flex: 1; padding: 14px 16px 6px; }
.shp-card__title {
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-l, 18px);
    font-weight: var(--font-weight-7, 700);
    color: var(--pc, var(--text-default, #fff));
    filter: brightness(1.3);
    margin-bottom: 5px;
}
.shp-card__subtitle {
    font-size: var(--font-size-m, 14px);
    color: var(--text-secondary, #9fa2b9);
    line-height: 1.45;
    margin-bottom: 10px;
}
.shp-card__props { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.shp-card__props li { display: flex; align-items: flex-start; gap: 7px; font-size: var(--font-size-m, 14px); color: var(--text-secondary, #9fa2b9); line-height: 1.4; }
.shp-card__props li span { min-width: 0; overflow-wrap: anywhere; }
.shp-card__props svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 4px; fill: var(--span, #76ab29); }
.shp-card__props b { color: var(--text-default, #fff); font-weight: var(--font-weight-6, 600); }
.shp-card__more { padding-left: 17px; opacity: .65; font-style: italic; }

.shp-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px 15px; }
.shp-card__price { display: flex; flex-direction: column; line-height: 1.15; }
.shp-card__price-label { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-card__price-value { font-size: var(--font-size-xl, 20px); font-weight: var(--font-weight-8, 800); color: var(--money, #f4ca80); }
.shp-card__price-old { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); opacity: .8; }

.shp-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary, #9fa2b9);
    border: 1px dashed var(--shp-line);
    border-radius: var(--shp-r);
    background: var(--card, #1f1f28);
}

/* ============ INFO / FAQ ============ */
.shp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 22px 0; }
.shp-info__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-12, 12px);
    background: var(--card, #1f1f28);
}
.shp-info__item svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; fill: var(--money, #f4ca80); }
.shp-info__item b { display: block; font-size: var(--font-size-m, 14px); margin-bottom: 3px; }
.shp-info__item span { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); line-height: 1.5; }
.shp-info__item a { color: var(--money, #f4ca80); }

.shp-faq { margin: 8px 0 20px; }
.shp-faq__title { font-family: var(--font-family-1, inherit); font-size: var(--font-size-xl, 20px); font-weight: var(--font-weight-7, 700); margin: 0 0 12px; }
.shp-faq__item {
    margin-bottom: 8px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--card, #1f1f28);
    overflow: hidden;
}
.shp-faq__item summary {
    position: relative;
    padding: 14px 44px 14px 16px;
    cursor: pointer;
    font-size: var(--font-size-m, 14px);
    font-weight: var(--font-weight-6, 600);
    list-style: none;
}
.shp-faq__item summary::-webkit-details-marker { display: none; }
.shp-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--money, #f4ca80);
    font-size: var(--font-size-xl, 20px);
    line-height: 1;
}
.shp-faq__item[open] summary::after { content: '–'; }
.shp-faq__item p { margin: 0; padding: 0 16px 15px; font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); line-height: 1.6; }

/* ============ МОДАЛКИ ============ */
.shp-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.shp-modal.open { display: flex; }
.shp-modal__overlay { position: absolute; inset: 0; background: var(--bg-modal, #00000099); backdrop-filter: blur(4px); }
.shp-modal__box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-20, 20px);
    background: var(--card, #1f1f28);
    animation: shpPop .18s ease;
}
.shp-modal__box--wide { max-width: 1000px; }
@keyframes shpPop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.shp-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--transparent-5-w, rgba(255,255,255,.05));
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-modal__close svg { width: 13px; height: 13px; flex: 0 0 13px; fill: var(--text-secondary, #9fa2b9); }
.shp-modal__close:hover { background: var(--red-10, rgba(255,73,64,.1)); border-color: var(--red, #ff4940); }
.shp-modal__close:hover svg { fill: var(--red, #ff4940); }

.shp-modal__head { display: flex; gap: 16px; align-items: center; margin: 0 44px 20px 0; }
.shp-modal__media {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border-radius: var(--br-16, 16px);
    overflow: hidden;
    background: radial-gradient(80px 60px at 50% 105%, color-mix(in srgb, var(--pc, #888) 35%, transparent), var(--transparent-10-b, rgba(0,0,0,.1)));
}
.shp-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.shp-modal__title {
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-xxl, 22px);
    font-weight: var(--font-weight-8, 800);
    margin-bottom: 5px;
}
.shp-modal__subtitle { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); line-height: 1.5; margin-bottom: 8px; }
.shp-modal__sub { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); margin-bottom: 14px; }
.shp-modal__badges { display: flex; gap: 6px; flex-wrap: wrap; }
/* minmax(0,…), а не голые fr: у грид-колонки min-width по умолчанию = auto,
   поэтому длинное неразрывное значение (список оружия через запятую без
   пробелов) раздувал колонку преимуществ до min-content и выталкивал колонку
   покупки за край модалки — цены и кнопка обрезались, внизу появлялся
   горизонтальный скролл. */
.shp-modal__body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; }
.shp-modal__section-title {
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-secondary, #9fa2b9);
    margin-bottom: 10px;
}
.shp-modal__footer { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--shp-line); }

/* Вкладки игровых режимов в деталке товара */
/* Атрибут hidden обязан работать во всём модуле: [hidden]{display:none} — стиль
   браузера, и ЛЮБОЙ авторский display его перекрывает. Именно на этом в
   module_block_vip_renew таблетка не закрывалась по крестику, а тут пустые
   вкладки режимов оставляли лишний отступ у товаров с одним режимом. */
.shp [hidden], .shp-modal [hidden] { display: none !important; }

.shp-mode-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.shp-mode-tab {
    padding: 7px 13px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: transparent;
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-mode-tab:hover { color: var(--text-default, #fff); }
.shp-mode-tab.active { background: var(--span, #76ab29); border-color: var(--span, #76ab29); color: #fff; }

/* padding-right — чтобы текст не упирался в вертикальный скроллбар.
   ВАЖНО: overflow-y:auto заставляет браузер вычислять overflow-x:visible как
   auto, поэтому любой перелив по горизонтали тут же даёт вторую полосу. */
.shp-props { list-style: none; margin: 0; padding: 0 6px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.shp-props li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--font-size-s, 12px); line-height: 1.45; }
/* anywhere, а не break-word: break-word не уменьшает min-content, и колонка
   всё равно осталась бы шириной с неразрывное значение. */
.shp-props li span { min-width: 0; overflow-wrap: anywhere; }
.shp-props li.off { opacity: .45; }
.shp-props svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 3px; }
.shp-props svg.yes { fill: var(--span, #76ab29); }
.shp-props svg.no { fill: var(--red, #ff4940); }
.shp-props b { color: var(--money, #f4ca80); font-weight: var(--font-weight-6, 600); }
.shp-props__group {
    margin-top: 6px;
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-custom, #989eca);
    opacity: .8;
}

/* ---- Разница с предыдущей привилегией ----
   Соседние ступени описаны одним набором строк, и без подсветки список Silver
   неотличим от Gold. Метка рядом со строкой — текстовая, не только цветом:
   «новое» / «изменено» читаются и в ч/б, и при дальтонизме. */
.shp-diff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.shp-diff__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: var(--br-6, 6px);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-6, 600);
    line-height: 1.4;
    border: 1px solid transparent;
}
.shp-diff__chip--base {
    color: var(--text-secondary, #9fa2b9);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    border-color: var(--shp-line);
}
.shp-diff__chip--up {
    color: var(--money, #f4ca80);
    background: var(--money-bg, rgba(244,202,128,.1));
}
.shp-diff__chip--new {
    color: var(--span, #76ab29);
    background: var(--span-10, rgba(118,171,41,.1));
}
.shp-diff__toggle {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: var(--br-6, 6px);
    border: 1px solid var(--shp-line);
    background: transparent;
    color: var(--text-secondary, #9fa2b9);
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-6, 600);
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-diff__toggle:hover { color: var(--text-default, #fff); border-color: var(--button-hover, #424367); }
.shp-diff.is-filtered .shp-diff__toggle {
    background: var(--button, #363753);
    border-color: var(--button, #363753);
    color: var(--text-default, #fff);
}

.shp-props li.is-new span, .shp-props li.is-up span { color: var(--text-default, #fff); }
.shp-props li.is-new svg.yes { fill: var(--span, #76ab29); }
.shp-props li.is-up svg.yes { fill: var(--money, #f4ca80); }
.shp-props s { color: var(--text-secondary, #9fa2b9); font-weight: var(--font-weight-4, 400); }
.shp-props__arrow { font-style: normal; color: var(--text-secondary, #9fa2b9); }
.shp-props__tag {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
    padding: 1px 6px;
    border-radius: var(--br-4, 4px);
    font-size: var(--font-size-xxs, 8px);
    font-weight: var(--font-weight-7, 700);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.6;
    white-space: nowrap;
}
.shp-props__tag--new { color: var(--span, #76ab29); background: var(--span-10, rgba(118,171,41,.1)); }
.shp-props__tag--up { color: var(--money, #f4ca80); background: var(--money-bg, rgba(244,202,128,.1)); }

/* Строка наследования на карточке в сетке */
.shp-card__inherit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-6, 600);
    line-height: 1.4;
}
.shp-card__inherit span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--br-6, 6px);
}
.shp-card__inherit svg { width: 10px; height: 10px; flex: 0 0 10px; fill: currentColor; }
.shp-card__inherit-base {
    color: var(--text-secondary, #9fa2b9);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
}
.shp-card__inherit-new { color: var(--span, #76ab29); background: var(--span-10, rgba(118,171,41,.1)); }
.shp-card__inherit-up { color: var(--money, #f4ca80); background: var(--money-bg, rgba(244,202,128,.1)); }

.shp-variants { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.shp-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    cursor: pointer;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-variant:hover { border-color: var(--button-hover, #424367); }
.shp-variant.active { border-color: var(--money, #f4ca80); background: var(--money-bg, rgba(244,202,128,.1)); }
.shp-variant__title { font-size: var(--font-size-m, 14px); font-weight: var(--font-weight-6, 600); }
.shp-variant__price { display: flex; align-items: baseline; gap: 7px; font-size: var(--font-size-m, 14px); font-weight: var(--font-weight-8, 800); color: var(--money, #f4ca80); white-space: nowrap; }
.shp-variant__price s { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); font-weight: var(--font-weight-4, 400); }

/* ---- Себе / в подарок ---- */
.shp-gift { margin-bottom: 16px; }
.shp-gift .shp-seg { display: flex; width: 100%; }
.shp-gift__field { margin-top: 10px; }
.shp-gift__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    padding: 9px 11px;
    border-radius: var(--br-8, 8px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    font-size: var(--font-size-xs, 10px);
    line-height: 1.5;
    color: var(--text-secondary, #9fa2b9);
}
.shp-gift__hint svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 1px; fill: var(--money, #f4ca80); }

.shp-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    margin-bottom: 12px;
    border-radius: var(--br-10, 10px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    font-size: var(--font-size-s, 12px);
    color: var(--text-secondary, #9fa2b9);
}
.shp-total b { font-size: var(--font-size-xl, 20px); color: var(--money, #f4ca80); }
.shp-buy-note { margin-top: 10px; font-size: var(--font-size-s, 12px); color: var(--red, #ff4940); text-align: center; }
.shp-buy-note a { color: var(--money, #f4ca80); }

/* ============================================================
   АДМИНКА
   ============================================================ */
.shp-adm__bar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.shp-adm__bar .shp-input { flex: 1 1 220px; max-width: 280px; }
.shp-adm__bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.shp-adm__count { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-adm__count b { color: var(--text-default, #fff); }

.shp-adm__bulk {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px 15px;
    margin-bottom: 14px;
    border: 1px solid var(--money, #f4ca80);
    border-radius: var(--br-12, 12px);
    background: var(--card, #1f1f28);
    box-shadow: var(--box-shadow-b-30, 0 8px 17px 0 rgb(0 0 0 / 30%));
}
.shp-adm__bulk-count { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-adm__bulk-count b { color: var(--money, #f4ca80); font-size: var(--font-size-m, 14px); }
.shp-adm__bulk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shp-adm__sep { width: 1px; height: 22px; background: var(--shp-line); }
.shp-adm__mini { display: inline-flex; align-items: center; gap: 7px; font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); white-space: nowrap; }
.shp-adm__mini input, .shp-adm__mini select {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-size: var(--font-size-s, 12px);
    font-family: inherit;
    outline: none;
}
.shp-adm__mini input[type="number"] { width: 84px; }
.shp-adm__check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); cursor: pointer; }
.shp-adm__check input[type="checkbox"]:not(.switch) { width: 16px; height: 16px; accent-color: var(--money, #f4ca80); cursor: pointer; }

/* ---- Список товаров ---- */
.shp-adm__list { border: 1px solid var(--shp-line); border-radius: var(--br-12, 12px); background: var(--card, #1f1f28); overflow: hidden; }
.shp-adm__head, .shp-adm__row {
    display: grid;
    grid-template-columns: 40px minmax(220px, 2.2fr) 1fr 1.1fr .8fr 70px 116px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.shp-adm__head {
    font-size: var(--font-size-xs, 10px);
    font-weight: var(--font-weight-7, 700);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary, #9fa2b9);
    border-bottom: 1px solid var(--shp-line);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
}
.shp-adm__row { border-bottom: 1px solid var(--shp-line-soft); transition: background .15s ease; }
.shp-adm__row:last-child { border-bottom: none; }
.shp-adm__row:hover { background: var(--transparent-2-w, rgba(255,255,255,.02)); }
.shp-adm__row.checked { background: var(--money-bg, rgba(244,202,128,.1)); }
.shp-adm__product { display: flex; align-items: center; gap: 11px; min-width: 0; }
.shp-adm__thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: var(--br-8, 8px);
    object-fit: cover;
    background: radial-gradient(40px 30px at 50% 110%, color-mix(in srgb, var(--pc, #888) 35%, transparent), transparent);
}
.shp-adm__pinfo { min-width: 0; }
.shp-adm__ptitle {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: var(--font-size-m, 14px);
    font-weight: var(--font-weight-6, 600);
    margin-bottom: 3px;
}
.shp-adm__pmeta { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); }
.shp-adm__cell { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-adm__cell b { color: var(--text-default, #fff); }
.shp-adm__dim { opacity: .65; }
.shp-adm__warn { color: var(--orange, #f6b949); }
.shp-adm__actions { display: flex; gap: 6px; justify-content: flex-end; }
.shp-adm__pagination { margin-top: 16px; justify-content: center; }

/* ---- Панели настроек ---- */
.shp-adm__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.shp-panel { padding: 18px; border: 1px solid var(--shp-line); border-radius: var(--br-12, 12px); background: var(--card, #1f1f28); }
.shp-panel__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-family: var(--font-family-1, inherit);
    font-size: var(--font-size-l, 18px);
    font-weight: var(--font-weight-7, 700);
}
.shp-panel__title svg { width: 17px; height: 17px; flex: 0 0 17px; fill: var(--money, #f4ca80); }

/* ---- Формы ---- */
.shp-form { display: flex; flex-direction: column; gap: 12px; }
.shp-form label, .shp-form__field { display: flex; flex-direction: column; gap: 6px; font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-form label.shp-adm__check { flex-direction: row; align-items: center; }
.shp-form__label { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-form input[type="text"], .shp-form input[type="number"], .shp-form select, .shp-editor input, .shp-editor select {
    height: var(--input-height, 41px);
    padding: 0 12px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-size: var(--font-size-m, 14px);
    font-family: inherit;
    outline: none;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-form input:focus, .shp-form select:focus, .shp-editor input:focus, .shp-editor select:focus { border-color: var(--money, #f4ca80); }
.shp-form input[type="color"] { height: 41px; padding: 3px; cursor: pointer; }
.shp-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shp-form__hint { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); opacity: .8; line-height: 1.5; }
.shp-form__checks { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.shp-hr { border: none; border-top: 1px solid var(--shp-line); margin: 6px 0; }

.shp-form__row--img { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.shp-form__imgpreview {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-12, 12px);
    overflow: hidden;
    background: var(--transparent-3-b, rgba(0,0,0,.03));
}
.shp-form__imgpreview img { width: 100%; height: 100%; object-fit: cover; }
.shp-form__imgctl { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.shp-form__imgbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.shp-form__color { flex: 0 0 120px; }

/* ---- Редакторы строк (цены, преимущества, категории, серверы) ---- */
.shp-editor { display: flex; flex-direction: column; gap: 8px; }
.shp-editor__toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.shp-editor__legend {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 52px 52px 52px 36px;
    gap: 8px;
    padding: 0 2px 6px;
    font-size: var(--font-size-xs, 10px);
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-secondary, #9fa2b9);
}
.shp-editor__row {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 52px 52px 52px 36px;
    gap: 8px;
    align-items: center;
}
.shp-editor__row--price { grid-template-columns: 1.5fr 100px 70px 110px 36px; align-items: center; }
.shp-editor__row--price .shp-adm__pmeta { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ-редактор в настройках */
.shp-faq-edit { padding: 12px; border: 1px solid var(--shp-line); border-radius: var(--br-10, 10px); background: var(--transparent-3-w, rgba(255,255,255,.03)); margin-bottom: 10px; }
.shp-faq-edit--new { border-style: dashed; }
.shp-faq-edit__head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.shp-faq-edit__head .f-q, .shp-faq-edit__head #fNewQ { flex: 1; }
.shp-faq-edit__head .f-sort, .shp-faq-edit__head #fNewSort { width: 70px; }
.shp-faq-edit textarea { width: 100%; }
.shp-faq__off { font-size: var(--font-size-xs, 10px); color: var(--orange, #f6b949); margin-left: 8px; }
.shp-faq__item--hidden { opacity: .6; border-style: dashed; }
.shp-editor__row--cat { grid-template-columns: 2fr 1.2fr 90px 36px 36px; }
.shp-editor__row--srv { grid-template-columns: 1.6fr 1.2fr 1fr 90px 80px 36px 36px; }
.shp-editor__row input[type="checkbox"] { width: 17px; height: 17px; margin: 0 auto; display: block; accent-color: var(--money, #f4ca80); cursor: pointer; }
.shp-editor__add {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--shp-line);
}
.shp-editor__add input, .shp-editor__add select {
    height: var(--input-height, 41px);
    padding: 0 12px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-size: var(--font-size-s, 12px);
    font-family: inherit;
    outline: none;
    flex: 1 1 120px;
    min-width: 0;
}
.shp-editor__empty { padding: 22px; text-align: center; color: var(--text-secondary, #9fa2b9); font-size: var(--font-size-s, 12px); }

/* Базовая textarea — проза (FAQ, «Важно»): перенос строк, обычный шрифт, авто-высота. */
.shp-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit;
    font-size: var(--font-size-m, 14px);
    line-height: 1.55;
    resize: vertical;
    outline: none;
    field-sizing: content;
}
.shp-textarea:focus { border-color: var(--money, #f4ca80); }
.shp-textarea--prose { min-height: 62px; }

/* Режим «Списком» у преимуществ — здесь моноширинный и без переносов осмысленно. */
.shp-textarea--code {
    min-height: 320px;
    font-family: var(--mono, ui-monospace, monospace);
    font-size: var(--font-size-s, 12px);
    line-height: 1.7;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

/* Кнопка, выглядящая ссылкой (внутри текста) */
.shp-link-btn {
    padding: 0;
    border: none;
    background: none;
    color: var(--money, #f4ca80);
    font-size: inherit;
    font-family: inherit;
    font-weight: var(--font-weight-6, 600);
    text-decoration: underline;
    cursor: pointer;
}
.shp-link-btn:hover { filter: brightness(1.15); }

.shp-tabs--adm { margin: 18px 0 16px; }
.shp-pane { min-height: 120px; }
.shp-saved { border-color: var(--span, #76ab29) !important; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1100px) {
    .shp { --shp-cols: 3 !important; }
    /* Прячем «Преимущества» — по одной колонке в шапке и в строке, чтобы они не разъезжались.
       nth-child по .shp-adm__cell не годится: он считает всех соседей, а не только ячейки. */
    .shp-adm__head, .shp-adm__row { grid-template-columns: 40px minmax(200px, 2.2fr) 1fr 1.1fr 70px 116px; }
    .shp-adm__head span:nth-child(5),
    .shp-adm__cell--props { display: none; }
}
@media (max-width: 860px) {
    .shp { --shp-cols: 2 !important; }
    .shp-modal__body { grid-template-columns: minmax(0, 1fr); }
    .shp-hero { padding: 20px; }
    .shp-hero__title { font-size: var(--font-size-xxl, 22px); }
    .shp-compare-btn { margin-left: 0; }
    .shp-adm__grid { grid-template-columns: 1fr; }
    .shp-editor__legend { display: none; }
    .shp-editor__row, .shp-editor__row--price, .shp-editor__row--cat, .shp-editor__row--srv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .shp { --shp-cols: 2 !important; }
    .shp-grid { gap: 10px; }
    .shp-card__body { padding: 11px 12px 4px; }
    .shp-card__title { font-size: var(--font-size-m, 14px); }
    .shp-card__props, .shp-card__subtitle { display: none; }
    /* строку наследования оставляем: на узкой карточке, где список преимуществ
       скрыт, это единственное, что отличает соседние ступени */
    .shp-card__inherit { margin-bottom: 6px; }
    .shp-card__footer { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
    .shp-card__footer .shp-btn { width: 100%; }
    .shp-modal { padding: 10px; }
    .shp-modal__box { padding: 16px; }
    .shp-modal__head { margin-right: 40px; gap: 12px; }
    .shp-modal__media { width: 72px; height: 72px; flex: 0 0 72px; }
    .shp-hero__side { width: 100%; justify-content: space-between; }
    .shp-adm__head { display: none; }
    .shp-adm__row { grid-template-columns: 30px 1fr 70px; row-gap: 6px; }
    .shp-adm__cell--server, .shp-adm__cell--props, .shp-adm__cell--prices { display: none; }
    .shp-adm__actions { grid-column: 1 / -1; justify-content: flex-start; }
}


/* ============================================================
   АДМИНКА v3 — панели, поля, скидки по сроку, bulk
   ============================================================ */

.shp-panel__note {
    margin: -8px 0 16px;
    font-size: var(--font-size-s, 12px);
    color: var(--text-secondary, #9fa2b9);
    line-height: 1.5;
}
.shp-panel__count {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--transparent-5-w, rgba(255,255,255,.05));
    font-family: var(--mono, monospace);
    font-size: var(--font-size-xs, 10px);
    color: var(--text-secondary, #9fa2b9);
    font-weight: 600;
}
.shp-panel__foot {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--shp-line);
}
.shp-sep { height: 1px; background: var(--shp-line); margin: 18px 0; }

/* поля */
.shp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.shp-field { display: flex; flex-direction: column; gap: 7px; }
.shp-field--narrow { max-width: 340px; }
.shp-field__label { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); font-weight: var(--font-weight-6, 600); }
.shp-field__hint { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); opacity: .8; line-height: 1.5; }
.shp-field input[type="text"], .shp-field input[type="number"], .shp-field select {
    height: var(--input-height, 41px);
    padding: 0 12px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit;
    font-size: var(--font-size-m, 14px);
    outline: none;
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-field input:focus, .shp-field select:focus { border-color: var(--money, #f4ca80); }

/* число + единица + кнопка в строку */
.shp-inline { display: inline-flex; align-items: center; gap: 8px; }
.shp-inline input[type="number"] {
    width: 92px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit;
    font-size: var(--font-size-m, 14px);
    font-variant-numeric: tabular-nums;
    outline: none;
}
.shp-inline input[type="number"]:focus { border-color: var(--money, #f4ca80); }
.shp-inline__unit { color: var(--text-secondary, #9fa2b9); font-size: var(--font-size-s, 12px); }

.shp-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-check input[type="checkbox"]:not(.switch) { width: 16px; height: 16px; accent-color: var(--money, #f4ca80); cursor: pointer; flex: none; }

/* скидки по сроку */
.shp-tdisc { display: flex; flex-direction: column; gap: 8px; }
.shp-tdisc__row {
    display: grid;
    grid-template-columns: 1fr auto auto 36px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-10, 10px);
    background: var(--transparent-3-w, rgba(255,255,255,.03));
    transition: var(--transition-ease-2, all .2s ease);
}
.shp-tdisc__row.is-on { border-color: var(--money, #f4ca80); background: var(--money-bg, rgba(244,202,128,.1)); }
.shp-tdisc__name { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.shp-tdisc__name b { font-size: var(--font-size-m, 14px); font-weight: var(--font-weight-6, 600); }
.shp-tdisc__name span { font-size: var(--font-size-xs, 10px); color: var(--text-secondary, #9fa2b9); }

/* строчные редакторы (категории, серверы) */
.shp-rows { display: flex; flex-direction: column; gap: 6px; }
.shp-rows__head {
    display: grid;
    gap: 8px;
    padding: 0 2px 4px;
    font-size: var(--font-size-xs, 10px);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary, #9fa2b9);
}
.shp-rows__row { display: grid; gap: 8px; align-items: center; }
.shp-rows__head--cat, .shp-rows__row--cat { grid-template-columns: 2fr 1.2fr 90px 84px; }
.shp-rows__head--srv, .shp-rows__row--srv { grid-template-columns: 1.6fr 1.2fr 1fr 90px 80px 84px; }
.shp-rows__act { display: flex; gap: 6px; }
.shp-rows__row input, .shp-rows__row select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit;
    font-size: var(--font-size-s, 12px);
    outline: none;
    min-width: 0;
}
.shp-rows__row input:focus, .shp-rows__row select:focus { border-color: var(--money, #f4ca80); }
.shp-rows__add {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--shp-line);
}
.shp-rows__add input, .shp-rows__add select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit;
    font-size: var(--font-size-s, 12px);
    outline: none;
    flex: 1 1 130px;
    min-width: 0;
}

/* bulk-панель: у каждой группы свой заголовок и своя кнопка */
.shp-bulk__top { display: flex; align-items: center; gap: 12px; }
.shp-bulk__count { font-size: var(--font-size-s, 12px); color: var(--text-secondary, #9fa2b9); }
.shp-bulk__count b { color: var(--money, #f4ca80); font-size: var(--font-size-m, 14px); }
.shp-bulk__clear {
    padding: 0; border: none; background: none;
    color: var(--text-secondary, #9fa2b9);
    font-family: inherit; font-size: var(--font-size-xs, 10px);
    text-decoration: underline; cursor: pointer;
}
.shp-bulk__clear:hover { color: var(--text-default, #fff); }
.shp-bulk__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.shp-bulk__group { display: flex; flex-direction: column; gap: 7px; }
.shp-bulk__label {
    font-size: var(--font-size-xs, 10px);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary, #9fa2b9);
    font-weight: var(--font-weight-7, 700);
}
.shp-bulk__ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shp-bulk__ctl select {
    height: 38px; padding: 0 10px;
    border: 1px solid var(--shp-line);
    border-radius: var(--br-8, 8px);
    background: var(--input-form, #272936);
    color: var(--text-default, #fff);
    font-family: inherit; font-size: var(--font-size-s, 12px);
    outline: none; flex: 1 1 120px; min-width: 0;
}
.shp-bulk__ctl .shp-btn { padding: 9px 14px; font-size: var(--font-size-s, 12px); }

/* скидка на вариант в модалке товара */
.shp-variant__off {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--red, #ff4940);
    color: #fff;
    font-size: var(--font-size-xxs, 8px);
    font-weight: var(--font-weight-7, 700);
    vertical-align: middle;
}
.shp-editor__legend--price { grid-template-columns: 1.5fr 100px 90px 70px 110px 36px; }
.shp-editor__row--price { grid-template-columns: 1.5fr 100px 90px 70px 110px 36px; }

@media (max-width: 860px) {
    .shp-rows__head { display: none; }
    .shp-rows__row--cat, .shp-rows__row--srv { grid-template-columns: 1fr 1fr; }
    .shp-tdisc__row { grid-template-columns: 1fr auto auto 36px; }
}

/* ============================================================
   ГЕЙТ АДМИН-ТОВАРОВ (Discord + оферта/соглашение)
   ============================================================ */
.shp-gate {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: var(--shp-r);
    background: var(--card-second, rgba(255,255,255,.03));
}
.shp-gate__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--font-size-s, 12px);
    color: var(--text-secondary, #9fa2b9);
}
.shp-gate__note svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    fill: var(--red, #ff4940);
}
.shp-gate__note-body { display: flex; flex-direction: column; gap: 4px; }
.shp-gate__note-body b { color: var(--text, #fff); }
.shp-gate__link {
    align-self: flex-start;
    margin-top: 2px;
    color: var(--money, #f4ca80);
    text-decoration: underline;
}
.shp-gate__check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: var(--font-size-s, 12px);
    color: var(--text-secondary, #9fa2b9);
    cursor: pointer;
    /*
     * В теме задано глобальное label { white-space: nowrap }. Без сброса
     * длинные подписи согласий оставались одной строкой и уезжали за край
     * модалки товара: замерено 513px текста в колонке 380px.
     */
    white-space: normal;
}
.shp-gate__check input { flex: 0 0 auto; margin-top: 1px; cursor: pointer; }
.shp-gate__check > span {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.shp-gate__check a { color: var(--money, #f4ca80); text-decoration: underline; }
