/* ============================================================
   Новая страница профиля — legendary-project.ru

   Всё живёт внутри .np и с префиксом np_, чтобы стили не текли
   на остальные страницы шаблона. Палитра совпадает с newhome.css,
   переменные объявлены на .np, а не на :root, по той же причине.
   ============================================================ */

.np{
  --np-bg:#121014;
  --np-deep:#0C0A0E;
  --np-surface:#1A171E;
  --np-surface2:#221E29;
  --np-surface3:#2A2533;
  --np-line:#302A3A;
  --np-line-soft:#26212E;
  --np-text:#EFEBF5;
  --np-muted:#9A93A8;
  --np-dim:#6E6880;
  --np-accent:#8C69FB;
  --np-accent-hi:#C4A3FF;
  --np-wash:rgba(140,105,251,.13);
  --np-live:#48D597;
  --np-gold:#F5C451;
  --np-danger:#E4635E;
  --np-orange:#FF8A3D;
  --np-blue:#5FA8F5;

  --np-r-lg:18px;
  --np-r-md:14px;
  --np-r-sm:10px;
  --np-pill:999px;

  --np-shadow:0 18px 40px -22px rgba(0,0,0,.9);

  --np-f-display:"Unbounded","Golos Text",Inter,system-ui,sans-serif;
  --np-f-body:"Golos Text",Inter,"Segoe UI",system-ui,sans-serif;
  --np-f-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;

  color:var(--np-text);
  font-family:var(--np-f-body);
  font-size:15px;
  line-height:1.55;
  width:100%;
  /* Страница лежит внутри bootstrap-овского .row (см. home/page_top.tpl).
     Поля 15px гасят отрицательные margin у .row и выравнивают контент
     по .container, то есть по подвалу — ровно как делала прежняя
     .new__profile. Класс col-12 сюда вешать НЕЛЬЗЯ: в primary.css есть
     `.col-12 b { color:black; font-size:24px; padding:15px 0 }`, и он
     чернит и разносит все <b> внутри профиля. */
  margin-left:15px;
  margin-right:15px;
  margin-bottom:20px;
}

/* Страховка от правил темы по голым тегам (тот же .col-12 b и подобные):
   специфичность равная, но newprofile.css подключается позже — выигрываем.
   Собственные правила ниже перекрывают этот сброс там, где надо. */
.np b,
.np strong{padding:0;margin:0;color:inherit;font-size:inherit;line-height:inherit}
.np p{margin:0}
.np h1,
.np h3{margin:0;line-height:inherit}

/* сама обёртка тоже border-box: с padding от col-12 и width:100%
   при content-box она вылезала за .container на 30px */
.np,
.np *{box-sizing:border-box}
.np a{color:inherit;text-decoration:none}
.np button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
.np :focus-visible{outline:2px solid var(--np-accent-hi);outline-offset:2px;border-radius:6px}
.np img{max-width:100%}

.np_empty_small{
  padding:16px;text-align:center;font-size:12.5px;color:var(--np-dim);
  background:var(--np-deep);border:1px dashed var(--np-line-soft);border-radius:var(--np-r-md);
}

/* ============================================================
   АНИМАЦИИ
   Всё выключается одним переключателем — системной настройкой
   «уменьшить движение». Ничего не анимируем через свойства,
   вызывающие пересчёт раскладки: только opacity и transform.
   ============================================================ */
.np_reveal{
  opacity:0;transform:translateY(16px);
  transition:opacity .5s ease,transform .5s cubic-bezier(.22,.61,.36,1);
}
.np_reveal.np_in{opacity:1;transform:none}

/* Полоски заполняются из нуля, когда карточка появилась.
   scaleX, а не width: ширина уже стоит верная в разметке, поэтому
   без js полоса просто окажется на месте. */
@keyframes np_grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.np_reveal.np_in .np_priv_bar i,
.np_reveal.np_in .np_srv_bar i,
.np_reveal.np_in .np_stack i{
  transform-origin:left center;
  animation:np_grow .55s cubic-bezier(.4,0,.2,1) both;
}

/* Тепловая карта проявляется волной слева направо.
   Задержка задаётся на колонку, а не на клетку: колонок 16, клеток 112 —
   так анимация в семь раз дешевле, а волна читается так же. */
@keyframes np_cell{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.np_reveal.np_in .np_heat_col .np_heat_c{
  animation:np_cell .34s ease both;
  animation-delay:var(--np-col-delay,0s);
}

@media (prefers-reduced-motion:reduce){
  .np_reveal{opacity:1;transform:none;transition:none}
  .np_reveal.np_in .np_priv_bar i,
  .np_reveal.np_in .np_srv_bar i,
  .np_reveal.np_in .np_stack i,
  .np_reveal.np_in .np_heat_col .np_heat_c{animation:none}
  .np_live_tag i{animation:none}
}

/* ============================================================
   ОФОРМЛЕНИЕ ПРОФИЛЯ: свой фон и музыка
   ============================================================ */

/* Фон и затемнение — псевдоэлементы с z-index:-1. Они ложатся под весь
   контент, но поверх фона страницы. У .np нет своего контекста наложения,
   поэтому отрицательный уровень работает как надо. */
.np_has_bg::before,
.np_has_bg::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}
.np_has_bg::before{
  background-image:var(--np-bg-img);
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.np_has_bg::after{background:rgba(12,10,14,var(--np-bg-dim,.55))}

/* Атрибут hidden скрывает через display:none из стилей браузера, а он
   слабее наших правил. Без этой строки экран входа и панель оформления
   висели бы открытыми у всех. */
.np_gate[hidden],
.np_modal[hidden],
.np_music_btn[hidden]{display:none !important}

/* Экран входа: без клика браузер звук не включит */
.np_gate{
  position:fixed;inset:0;z-index:9998;display:grid;place-items:center;
  background:rgba(8,7,10,.92);backdrop-filter:blur(10px);text-align:center;padding:20px;
}
.np_gate_in{max-width:340px;display:flex;flex-direction:column;align-items:center;gap:10px}
.np_gate_ico{
  width:56px;height:56px;border-radius:18px;display:grid;place-items:center;
  background:var(--np-wash);color:var(--np-accent-hi);font-size:26px;
}
.np_gate_in b{font-family:var(--np-f-display);font-size:24px;font-weight:600}
.np_gate_in > span{font-size:13px;color:var(--np-muted)}
.np_gate_in .np_btn{margin-top:6px}
.np_gate_skip{font-size:12.5px;color:var(--np-dim);text-decoration:underline;cursor:pointer}
.np_gate_skip:hover{color:var(--np-muted)}

/* Кнопка звука — всегда под рукой, чтобы музыку можно было заткнуть */
.np_music_btn{
  position:fixed;right:18px;bottom:18px;z-index:60;
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:var(--np-surface2);border:1px solid var(--np-line);
  color:var(--np-accent-hi);font-size:19px;box-shadow:var(--np-shadow);transition:.16s;
}
.np_music_btn:hover{border-color:var(--np-accent);transform:translateY(-2px)}
.np_music_btn.np_muted{color:var(--np-dim)}
.np_music_btn iconify-icon{display:block;line-height:1}

/* Панель оформления */
.np_modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:rgba(8,7,10,.75);padding:18px}
.np_modal_box{
  width:100%;max-width:460px;max-height:88vh;display:flex;flex-direction:column;
  background:var(--np-surface);border:1px solid var(--np-line);
  border-radius:var(--np-r-lg);box-shadow:0 30px 70px -30px #000;
}
.np_modal_head{
  display:flex;align-items:center;gap:10px;padding:15px 18px;
  border-bottom:1px solid var(--np-line-soft);
}
.np_modal_head b{font-family:var(--np-f-display);font-size:14px;font-weight:600}
.np_modal_x{margin-left:auto;color:var(--np-dim);font-size:18px;display:grid;place-items:center}
.np_modal_x:hover{color:var(--np-text)}
.np_modal_x iconify-icon{display:block;line-height:1}
.np_modal_body{padding:16px 18px;overflow-y:auto}

.np_custom_lock{
  padding:14px;border-radius:var(--np-r-md);margin-bottom:16px;text-align:center;
  background:var(--np-wash);border:1px solid rgba(140,105,251,.3);
}
.np_custom_lock p{font-size:13px;color:var(--np-muted);margin:0 0 10px}
.np_custom_lock b{color:var(--np-accent-hi)}
.np_custom_form.np_locked{opacity:.4;pointer-events:none}

.np_f_label{display:block;font-size:12px;color:var(--np-dim);margin:14px 0 6px;text-transform:uppercase;letter-spacing:.05em}
.np_f_label:first-child{margin-top:0}
.np_modal_body input[type=url],
.np_modal_body input[type=text]{
  width:100%;font:inherit;font-size:13px;color:var(--np-text);background:var(--np-deep);
  border:1px solid var(--np-line-soft);border-radius:var(--np-r-sm);padding:9px 11px;
}
.np_modal_body input[type=url]:focus,
.np_modal_body input[type=text]:focus{outline:none;border-color:var(--np-accent)}
.np_modal_body input[type=range]{width:100%;accent-color:var(--np-accent)}
.np_modal_body input[type=file]{font-size:12.5px;color:var(--np-muted);width:100%}
.np_hint_txt{display:block;font-size:11.5px;color:var(--np-dim);margin-top:5px;line-height:1.45}
.np_check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--np-muted);margin-top:12px;cursor:pointer}
.np_check input{accent-color:var(--np-accent)}

.np_seg{display:flex;gap:4px;padding:4px;background:var(--np-deep);border-radius:var(--np-pill)}
.np_seg button{flex:1;padding:7px 10px;border-radius:var(--np-pill);font-size:12.5px;color:var(--np-muted);transition:.14s}
.np_seg button:hover{color:var(--np-text)}
.np_seg button.np_on{background:linear-gradient(135deg,var(--np-accent-hi),var(--np-accent));color:#140F22;font-weight:600}

.np_bg_pane{display:none;margin-top:10px}
.np_bg_pane.np_on{display:block}

.np_modal_foot{display:flex;align-items:center;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid var(--np-line-soft);flex-wrap:wrap}
.np_modal_msg{font-size:12px;color:var(--np-muted);flex:1;min-width:120px}
.np_modal_msg.np_err{color:var(--np-danger)}
.np_modal_msg.np_ok{color:var(--np-live)}

@media (max-width:760px){
  .np_music_btn{right:12px;bottom:88px}
}

/* ---------- Карточки ---------- */
.np_card{
  background:var(--np-surface);border:1px solid var(--np-line-soft);
  border-radius:var(--np-r-lg);box-shadow:var(--np-shadow);
}
.np_card_h{display:flex;align-items:center;gap:9px;padding:14px 16px;border-bottom:1px solid var(--np-line-soft)}
.np_card_h h3{
  margin:0;font-family:var(--np-f-display);font-size:12.5px;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;color:var(--np-text);
}
.np_h_ico{
  width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:var(--np-wash);color:var(--np-accent-hi);font-size:15px;flex:none;
}
/* Иконки — iconify (templates/noctis/js/iconofy.js, подключён в head.tpl).
   Монохромные наборы красятся currentColor, поэтому цвет задаётся классом. */
.np_h_ico iconify-icon{display:block;line-height:1}
.np_h_ico.np_ico_gold{background:rgba(245,196,81,.14);color:var(--np-gold)}
.np_h_ico.np_ico_blue{background:rgba(95,168,245,.13);color:var(--np-blue)}
.np_h_ico.np_ico_live{background:rgba(72,213,151,.13);color:var(--np-live)}
.np_h_ico.np_ico_danger{background:rgba(228,99,94,.14);color:var(--np-danger)}
.np_h_side{margin-left:auto;font-size:11.5px;color:var(--np-dim);font-family:var(--np-f-mono)}
.np_h_side a{color:var(--np-accent-hi)}
.np_card_b{padding:14px 16px}

/* ---------- Сворачиваемая карточка ---------- */
.np_fold_head{
  width:100%;text-align:left;cursor:pointer;
  /* .np_card_h уже даёт flex и отступы — тут только поведение кнопки.
     Линию снизу рисуем только когда карточка раскрыта: сброс `.np button`
     её в любом случае убирает, а под свёрнутой она и не нужна. */
}
.np_fold_card.np_open .np_fold_head{border-bottom:1px solid var(--np-line-soft)}
.np_fold_head:hover h3{color:var(--np-accent-hi)}
.np_chev{
  display:grid;place-items:center;flex:none;margin-left:8px;
  color:var(--np-dim);font-size:15px;transition:transform .18s ease;
}
.np_chev iconify-icon{display:block;line-height:1}
.np_fold_card.np_open .np_chev{transform:rotate(180deg)}
.np_fold_card .np_h_side{margin-left:auto}

.np_fold{display:none}
.np_fold_card.np_open .np_fold{display:block}

/* Даже развёрнутый список не должен растягивать страницу */
.np_scroll{max-height:300px;overflow-y:auto;padding-right:4px}

/* Скроллбар под тёмную тему — иначе в вебките он белый и лезет в глаза */
.np_scroll::-webkit-scrollbar,
.np_comments_wrap::-webkit-scrollbar{width:8px}
.np_scroll::-webkit-scrollbar-track,
.np_comments_wrap::-webkit-scrollbar-track{background:var(--np-deep);border-radius:var(--np-pill)}
.np_scroll::-webkit-scrollbar-thumb,
.np_comments_wrap::-webkit-scrollbar-thumb{background:var(--np-surface3);border-radius:var(--np-pill)}
.np_scroll::-webkit-scrollbar-thumb:hover,
.np_comments_wrap::-webkit-scrollbar-thumb:hover{background:var(--np-line)}
.np_scroll,
.np_comments_wrap{scrollbar-width:thin;scrollbar-color:var(--np-surface3) var(--np-deep)}

/* ---------- Кнопки ---------- */
.np_btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border-radius:var(--np-pill);padding:10px 18px;font-size:13.5px;font-weight:500;
  transition:.16s;white-space:nowrap;border:none;
}
.np_btn_main{
  background:linear-gradient(135deg,var(--np-accent-hi),var(--np-accent));
  color:#140F22;font-weight:600;box-shadow:0 10px 26px -14px rgba(140,105,251,.95);
}
.np_btn_main:hover{filter:brightness(1.07);color:#140F22}
.np_btn_ghost{border:1px solid var(--np-line);color:var(--np-muted);background:rgba(18,15,21,.55)}
.np_btn_ghost:hover{color:var(--np-text);border-color:var(--np-accent);background:var(--np-wash)}
.np_btn_live{background:rgba(72,213,151,.14);border:1px solid rgba(72,213,151,.45);color:var(--np-live);font-weight:600}
.np_btn_live:hover{background:rgba(72,213,151,.22);color:var(--np-live)}
.np_btn_sm{padding:7px 13px;font-size:12.5px}

/* ============================================================
   ШАПКА ПРОФИЛЯ
   ============================================================ */
/* overflow:hidden тут нельзя: внутри шапки лежит выпадающее меню «…»,
   и оно обрезалось. Скругление обложки делает сама .np_cover.
   z-index здесь тоже нельзя: у выпадающих меню шапки сайта
   (.wapper .header .collapsible-menu > li ul) стоит z-index:2, и любой
   контекст наложения выше него прятал бы их под обложку. Порядок слоёв
   внутри шапки профиля и так задаётся порядком в разметке. */
.np_hero{
  position:relative;border-radius:var(--np-r-lg);
  border:1px solid var(--np-line-soft);background:var(--np-surface);box-shadow:var(--np-shadow);
}
/* z-index:0 (а не auto) обязателен: он замыкает внутри обложки её
   собственные слои — градиент ::after с z-index:2 и кнопку правки.
   Без него они всплывали в общий контекст и накрывали аватар, который
   заходит на обложку снизу. Нулевой уровень при этом ничего не ломает:
   выпадающие меню шапки сайта с z-index:2 по-прежнему выше. */
.np_cover{
  position:relative;z-index:0;height:230px;background:var(--np-surface2);overflow:hidden;
  border-radius:calc(var(--np-r-lg) - 1px) calc(var(--np-r-lg) - 1px) 0 0;
}

/* Модуль обложки рендерит внутрь свой #cover-container с background-image —
   растягиваем его на всю высоту шапки вместо собственной вёрстки */
.np_cover #cover_banner,
.np_cover #cover-container,
.np_cover .cover-image-container{
  position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:0;
  background-size:cover;background-position:center;
}
.np_cover form{margin:0}
.np_cover .cover-edit-btn{z-index:4}
/* Подсказка у кнопки смены обложки в модуле cover раскрывается вверх
   (bottom:100%), а кнопка стоит в 20px от верха — её срезал overflow:hidden.
   Разворачиваем вниз вместе со стрелкой. */
.np_cover .cover-tooltip{bottom:auto;top:100%;margin-bottom:0;margin-top:8px}
.np_cover .cover-tooltip::after{
  top:auto;bottom:100%;
  border-color:transparent transparent #343a40 transparent;
}
.np_cover::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(180deg,rgba(12,10,14,.12) 0%,rgba(12,10,14,.5) 46%,var(--np-surface) 100%);
}

.np_hero_main{
  position:relative;margin-top:-78px;padding:0 24px;
  display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap;
}
.np_ava{position:relative;flex:none}
.np_ava img{
  width:132px;height:132px;border-radius:26px;display:block;object-fit:cover;
  background:var(--np-surface3);border:3px solid var(--np-surface);
  box-shadow:0 18px 44px -18px rgba(0,0,0,.95);
}
.np_ava_live{
  position:absolute;right:5px;bottom:5px;width:18px;height:18px;border-radius:50%;
  background:var(--np-live);border:3px solid var(--np-surface);box-shadow:0 0 0 3px rgba(72,213,151,.22);
}

.np_ident{flex:1;min-width:250px;padding-bottom:5px}
.np_name{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:1px}
.np_name h1{
  margin:0;font-family:var(--np-f-display);font-size:33px;font-weight:800;
  letter-spacing:-.01em;line-height:1.15;color:var(--np-text);
}
.np_name .user-badges-container{display:inline-flex;align-items:center;gap:5px}
.np_name .user-badges-container img{height:22px;width:auto}
/* У части групп в {group_color} лежит не только цвет, но и весь стиль:
   background: url(../files/groups_styles/N.gif), font-weight, text-shadow
   (см. setGroupStyle в ajax/ajax-admin.js и templates/admin/.../group_form.tpl).
   Блочный элемент растягивал бы эту гифку на всю ширину колонки, поэтому
   inline-block — ширина по тексту, как в остальных местах сайта. */
.np_group{
  display:inline-block;max-width:100%;
  font-size:14px;font-weight:600;letter-spacing:.01em;
  background-repeat:no-repeat;
}

.np_status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:13px}
.np_live_tag{display:inline-flex;align-items:center;gap:6px;color:var(--np-live);font-weight:600}
.np_live_tag i{width:7px;height:7px;border-radius:50%;background:var(--np-live);animation:np_pulse 2.2s infinite}
@keyframes np_pulse{
  0%{box-shadow:0 0 0 0 rgba(72,213,151,.55)}
  70%{box-shadow:0 0 0 8px rgba(72,213,151,0)}
  100%{box-shadow:0 0 0 0 rgba(72,213,151,0)}
}
.np_dim{color:var(--np-dim)}
.np_srv_on{color:var(--np-text);font-weight:500}
.np_offline{color:var(--np-dim);font-size:13px}

/* ---------- Био под статусом ---------- */
.np_bio_wrap{margin-top:8px;max-width:640px}
/* Текст inline, карандаш сразу за ним — иначе кнопка прибивалась
   к правому краю блока и у короткого био улетала далеко от текста */
.np_bio{
  display:inline;font-size:13.5px;line-height:1.5;color:var(--np-muted);
  word-break:break-word;overflow-wrap:anywhere;
}
.np_bio_empty{color:var(--np-dim);font-style:italic}

.np_bio_edit{
  display:inline-grid;place-items:center;vertical-align:-4px;margin-left:6px;
  width:22px;height:22px;border-radius:7px;
  color:var(--np-dim);font-size:13px;opacity:.5;transition:.14s;
}
.np_bio_wrap:hover .np_bio_edit,
.np_bio_edit:focus-visible{opacity:1}
.np_bio_edit:hover{color:var(--np-accent-hi);background:var(--np-wash)}
.np_bio_edit iconify-icon{display:block;line-height:1}

.np_bio_form{display:none}
.np_bio_wrap.np_open .np_bio_form{display:block}
.np_bio_wrap.np_open .np_bio,
.np_bio_wrap.np_open .np_bio_edit{display:none}
.np_bio_form textarea{
  width:100%;min-height:58px;resize:vertical;font:inherit;font-size:13.5px;
  color:var(--np-text);background:var(--np-deep);
  border:1px solid var(--np-line-soft);border-radius:var(--np-r-sm);padding:9px 11px;
}
.np_bio_form textarea:focus{outline:none;border-color:var(--np-accent)}
.np_bio_foot{display:flex;align-items:center;gap:8px;margin-top:8px}
.np_bio_cnt{margin-left:auto;font-family:var(--np-f-mono);font-size:11px;color:var(--np-dim)}
.np_bio_msg{margin-top:6px;font-size:12px;color:var(--np-danger);min-height:0}

.np_acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding-bottom:6px}
.np_more{position:relative}
.np_more_btn{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--np-line);color:var(--np-muted);
  display:grid;place-items:center;font-size:18px;transition:.16s;background:rgba(18,15,21,.55);
}
.np_more_btn iconify-icon{display:block;line-height:1}
.np_more_btn:hover{color:var(--np-text);border-color:var(--np-accent)}
.np_more_menu{
  position:absolute;right:0;top:46px;min-width:228px;background:var(--np-surface2);
  border:1px solid var(--np-line);border-radius:var(--np-r-md);padding:6px;z-index:30;
  box-shadow:0 22px 48px -20px rgba(0,0,0,.95);display:none;
}
.np_more.np_open .np_more_menu{display:block}
.np_more_menu a{
  display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:var(--np-r-sm);
  font-size:13.5px;color:var(--np-muted);transition:.14s;cursor:pointer;
}
.np_more_menu a:hover{background:var(--np-surface3);color:var(--np-text)}
.np_more_menu a.np_warn:hover{color:var(--np-danger)}
.np_more_grp{
  font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--np-dim);
  padding:9px 11px 3px;font-family:var(--np-f-mono);
}

.np_facts{
  position:relative;display:flex;flex-wrap:wrap;margin-top:18px;
  border-top:1px solid var(--np-line-soft);padding:14px 24px 16px;
}
.np_fact{flex:1;min-width:112px;padding:0 16px;border-left:1px solid var(--np-line-soft)}
.np_fact:first-child{border-left:none;padding-left:0}
.np_fact b{
  display:block;font-family:var(--np-f-display);font-size:21px;font-weight:600;
  line-height:1.15;font-variant-numeric:tabular-nums;
}
.np_fact span{display:block;font-size:11.5px;color:var(--np-dim);margin-top:2px}
.np_fact b.np_acc{color:var(--np-accent-hi)}
.np_fact b.np_pos{color:var(--np-live)}

/* ============================================================
   ИГРОВАЯ СВОДКА
   ============================================================ */
.np_band{display:grid;grid-template-columns:1.02fr 1.28fr .92fr;gap:16px;margin-top:16px}

.np_big{font-family:var(--np-f-display);font-size:28px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
.np_stack{display:flex;height:9px;border-radius:var(--np-pill);overflow:hidden;margin:14px 0 11px;background:var(--np-deep)}
.np_stack i{display:block;height:100%}
.np_legend{display:flex;flex-wrap:wrap;gap:13px;font-size:12px;color:var(--np-muted)}
.np_legend span{display:flex;align-items:center;gap:6px}
.np_legend i{width:8px;height:8px;border-radius:3px;flex:none}
.np_legend b{color:var(--np-text);font-family:var(--np-f-mono);font-size:11.5px;font-weight:600}
.np_meta{
  display:flex;gap:20px;margin-top:14px;padding-top:13px;
  border-top:1px solid var(--np-line-soft);font-size:11.5px;color:var(--np-dim);
}
.np_meta b{display:block;color:var(--np-text);font-family:var(--np-f-mono);font-size:13px;font-weight:600}

.np_heat{display:flex;gap:4px;padding-bottom:2px;justify-content:center}
.np_heat_col{display:flex;flex-direction:column;gap:4px;flex:1 1 0;min-width:0;max-width:17px}
.np_heat_c{width:100%;aspect-ratio:1;border-radius:3.5px;background:var(--np-surface2);transition:.14s;cursor:help}
.np_heat_c[data-l="1"]{background:rgba(140,105,251,.3)}
.np_heat_c[data-l="2"]{background:rgba(140,105,251,.54)}
.np_heat_c[data-l="3"]{background:rgba(140,105,251,.78)}
.np_heat_c[data-l="4"]{background:var(--np-accent-hi)}
.np_heat_c:hover{outline:1.5px solid var(--np-accent-hi);outline-offset:1px}
.np_heat_future{opacity:.25;cursor:default}
.np_heat_foot{
  display:flex;align-items:center;gap:7px;margin-top:12px;padding-top:12px;
  border-top:1px solid var(--np-line-soft);font-size:11.5px;color:var(--np-dim);flex-wrap:wrap;
}
.np_heat_sc{display:flex;gap:3px;margin:0 2px}
.np_heat_sc i{width:11px;height:11px;border-radius:3px;display:block}
.np_heat_rt{margin-left:auto}
.np_heat_rt b{color:var(--np-text);font-family:var(--np-f-mono)}

.np_srvrow{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.np_srvrow:last-child{margin-bottom:0}
.np_srv_nm{flex:1;min-width:0}
.np_srv_nm b{display:block;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np_srv_bar{height:5px;border-radius:var(--np-pill);background:var(--np-deep);margin-top:6px;overflow:hidden}
.np_srv_bar i{display:block;height:100%;border-radius:var(--np-pill);background:linear-gradient(90deg,var(--np-accent),var(--np-accent-hi))}
.np_srv_val{font-family:var(--np-f-mono);font-size:12px;color:var(--np-accent-hi);font-variant-numeric:tabular-nums;flex:none}

/* ============================================================
   ДВЕ КОЛОНКИ
   ============================================================ */
.np_grid{display:grid;grid-template-columns:332px 1fr;gap:16px;margin-top:16px;align-items:start}
/* без min-width:0 колонка 1fr растягивается под min-content содержимого,
   и панель вкладок распирает всю страницу вместо своей прокрутки */
.np_grid > *{min-width:0}
.np_side{display:flex;flex-direction:column;gap:16px}

.np_dl_row{
  display:flex;align-items:baseline;gap:12px;padding:9px 0;
  border-bottom:1px dashed var(--np-line-soft);font-size:13.5px;
}
.np_dl_row:first-child{padding-top:0}
.np_dl_row:last-child{border-bottom:none;padding-bottom:0}
.np_dl_row .np_k{color:var(--np-dim);font-size:12.5px;flex:none;width:124px}
.np_dl_row .np_v{color:var(--np-text);flex:1;min-width:0;word-break:break-word}
.np_dl_row .np_v.np_mono{font-family:var(--np-f-mono);font-size:12.5px}
.np_dl_row .np_v.np_none{color:var(--np-dim)}
.np_hint{
  display:inline-flex;align-items:center;gap:4px;font-size:10px;color:var(--np-dim);
  font-family:var(--np-f-mono);background:var(--np-deep);border:1px solid var(--np-line-soft);
  border-radius:var(--np-pill);padding:1px 6px;margin-left:6px;vertical-align:middle;
}

.np_wallet{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.np_wcell{background:var(--np-deep);border:1px solid var(--np-line-soft);border-radius:var(--np-r-md);padding:11px 12px}
.np_wcell b{display:block;font-family:var(--np-f-display);font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
.np_wcell span{display:block;font-size:11px;color:var(--np-dim);margin-top:1px}
.np_wcell.np_rub b{color:var(--np-accent-hi)}
.np_wcell.np_coin b{color:var(--np-gold)}
.np_wbtns{display:flex;gap:8px;margin-top:10px}
.np_wbtns .np_btn{flex:1}

.np_navlist{display:flex;flex-direction:column;gap:2px}
.np_navlist a{
  display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:var(--np-r-sm);
  font-size:13.5px;color:var(--np-muted);transition:.14s;
}
.np_navlist a:hover{background:var(--np-surface2);color:var(--np-text)}
.np_navlist a .np_ni{
  width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:var(--np-surface2);font-size:14px;flex:none;transition:.14s;
}
.np_navlist a .np_ni iconify-icon{display:block;line-height:1}
.np_navlist a:hover .np_ni{background:var(--np-wash);color:var(--np-accent-hi)}
.np_navlist a .np_sp{margin-left:auto;display:flex;align-items:center;gap:8px}
.np_navlist a .np_cnt{
  font-family:var(--np-f-mono);font-size:11px;font-weight:600;color:#140F22;
  background:var(--np-accent-hi);border-radius:var(--np-pill);padding:1px 7px;
}
.np_navlist a .np_arr{color:var(--np-dim);font-size:12px}

.np_soclist{display:flex;flex-direction:column;gap:8px}
.np_socrow{
  display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:var(--np-r-md);
  background:var(--np-deep);border:1px solid var(--np-line-soft);transition:.16s;
}
a.np_socrow:hover{border-color:var(--np-accent);transform:translateX(2px)}
.np_socrow .np_si{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  font-size:16px;flex:none;
}
.np_socrow .np_si iconify-icon{display:block;line-height:1}
.np_socrow.np_steam .np_si{background:linear-gradient(135deg,#9747FF,#4C2CDB);color:#fff}
.np_socrow.np_vk .np_si{background:linear-gradient(135deg,#FFA347,#FF7231);color:#2A1505}
.np_socrow.np_tg .np_si{background:linear-gradient(135deg,#F551D6,#B351F5);color:#fff}
/* Аватар из Steam/VK: скрипты get_user_steam_info / get_vk_profile_info
   подставляют сюда картинку и ник, поэтому внутри #steam_user и #vk_user
   должен быть ровно один <img> и ровно один <span> */
.np_socrow .np_si_img{
  width:30px;height:30px;border-radius:9px;object-fit:cover;flex:none;
  background:var(--np-surface3);display:block;
}
.np_socrow .np_st{font-style:normal;flex:1;min-width:0}
.np_socrow .np_st b{display:block;font-size:13px;font-weight:600}
.np_socrow .np_st span{display:block;font-size:11.5px;color:var(--np-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np_socrow .np_go{color:var(--np-dim);font-size:13px;flex:none;font-style:normal}
.np_socrow.np_off{opacity:.55}
.np_socrow.np_off .np_si{filter:grayscale(1)}
.np_socrow .np_link{font-size:11.5px;color:var(--np-accent-hi);flex:none}

.np_clean{
  display:flex;align-items:center;gap:11px;padding:12px;border-radius:var(--np-r-md);
  background:rgba(72,213,151,.07);border:1px solid rgba(72,213,151,.24);
}
.np_clean .np_ci{
  width:32px;height:32px;border-radius:10px;background:rgba(72,213,151,.16);color:var(--np-live);
  display:grid;place-items:center;font-size:16px;flex:none;
}
.np_clean .np_ci iconify-icon{display:block;line-height:1}
.np_clean b{display:block;font-size:13.5px;font-weight:600;color:var(--np-live)}
.np_clean span{display:block;font-size:11.5px;color:var(--np-dim)}

/* Блок наказаний приходит из ajax/profile_punishments.php готовой вёрсткой —
   тут только оболочка и загрузчик */
/* Модули отдают «пусто» своей вёрсткой (span.empty-element) — приводим
   к тому же виду, что и остальные пустые блоки профиля */
.np_card_b .empty-element{
  display:block;padding:16px;text-align:center;font-size:12.5px;
  color:var(--np-dim);background:var(--np-deep);
  border:1px dashed var(--np-line-soft);border-radius:var(--np-r-md);
  line-height:1.5;
}
.np_pun_load{text-align:center;padding:12px}
.np_pun_load img{height:28px;width:auto}

/* ============================================================
   ВКЛАДКИ
   ============================================================ */
.np_tabbar{
  display:flex;gap:6px;overflow-x:auto;padding:5px;background:var(--np-surface);
  border:1px solid var(--np-line-soft);border-radius:var(--np-pill);
  box-shadow:var(--np-shadow);scrollbar-width:none;min-width:0;
}
.np_tabbar button{flex:none}
.np_tabbar::-webkit-scrollbar{display:none}
.np_tabbar button{
  display:flex;align-items:center;gap:7px;padding:9px 17px;border-radius:var(--np-pill);
  font-size:13.5px;color:var(--np-muted);white-space:nowrap;transition:.16s;
}
.np_tabbar button:hover{color:var(--np-text);background:var(--np-surface2)}
.np_tabbar button[aria-selected="true"]{
  background:linear-gradient(135deg,var(--np-accent-hi),var(--np-accent));
  color:#140F22;font-weight:600;
}
.np_tabbar button .np_n{
  font-family:var(--np-f-mono);font-size:10.5px;background:var(--np-surface3);
  color:var(--np-muted);border-radius:var(--np-pill);padding:1px 6px;
}
.np_tabbar button[aria-selected="true"] .np_n{background:rgba(20,15,34,.22);color:#140F22}
.np_panels{margin-top:16px}
.np_panel{display:none}
.np_panel.np_on{display:block}

/* ---------- Лента ---------- */
.np_fitem{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--np-line-soft)}
.np_fitem:first-child{padding-top:0}
.np_fitem:last-child{border-bottom:none;padding-bottom:0}
.np_fico{
  width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  font-size:15px;flex:none;background:var(--np-surface2);color:var(--np-muted);
}
.np_fico iconify-icon{display:block;line-height:1}
.np_fico_play{background:rgba(72,213,151,.13);color:var(--np-live)}
.np_fico_buy{background:var(--np-wash);color:var(--np-accent-hi)}
.np_fico_forum{background:rgba(95,168,245,.13);color:var(--np-blue)}
.np_fico_money{background:rgba(245,196,81,.14);color:var(--np-gold)}
.np_ftxt{flex:1;min-width:0;font-size:13.5px}
.np_ftxt p{margin:0;color:var(--np-muted)}
.np_ftxt p b{color:var(--np-text);font-weight:600}
.np_lnk{color:var(--np-accent-hi)}
.np_ftxt time{display:block;font-size:11.5px;color:var(--np-dim);margin-top:3px;font-family:var(--np-f-mono)}

.np_two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}

.np_tp{display:flex;gap:11px;padding:11px 0;border-bottom:1px solid var(--np-line-soft)}
.np_tp:first-child{padding-top:0}
.np_tp:last-child{border-bottom:none;padding-bottom:0}
.np_tp:hover .np_tp_txt b{color:var(--np-accent-hi)}
.np_tp_ico{
  width:28px;height:28px;border-radius:9px;background:var(--np-surface2);color:var(--np-muted);
  display:grid;place-items:center;font-size:12px;flex:none;
}
.np_tp_ico iconify-icon{display:block;line-height:1}
.np_tp_txt{flex:1;min-width:0}
.np_tp_txt b{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.14s}
.np_tp_txt > span{display:block;font-size:11.5px;color:var(--np-dim);margin-top:2px}

/* ---------- Привилегии ---------- */
.np_privgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px}
.np_priv{
  background:var(--np-deep);border:1px solid var(--np-line-soft);
  border-radius:var(--np-r-md);padding:14px;transition:.16s;
}
.np_priv:hover{border-color:var(--np-accent);transform:translateY(-2px)}
.np_priv_top{display:flex;align-items:center;gap:9px;margin-bottom:4px}
.np_priv_dot{width:9px;height:9px;border-radius:50%;flex:none}
.np_priv_top b{font-size:14px;font-weight:600;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np_priv_srv{font-size:11.5px;color:var(--np-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np_priv_bar{height:5px;border-radius:var(--np-pill);background:var(--np-surface2);margin:11px 0 7px;overflow:hidden}
.np_priv_bar i{display:block;height:100%;border-radius:var(--np-pill);background:linear-gradient(90deg,var(--np-accent),var(--np-accent-hi))}
.np_priv_bar_warn i{background:linear-gradient(90deg,var(--np-orange),var(--np-gold))}
.np_priv_foot{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11.5px;color:var(--np-dim)}
.np_priv_left{color:var(--np-accent-hi)}

/* Блок покупок rcon_shop приходит своей вёрсткой — даём ему место */
.np_rcon{margin-top:16px}

/* ---------- Награды ---------- */
.np_medals{min-height:60px}
.np_medals img{max-width:100%}

/* ---------- Друзья ---------- */
.np_frgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(174px,1fr));gap:11px}
.np_fr{
  display:flex;align-items:center;gap:11px;padding:11px;border-radius:var(--np-r-md);
  background:var(--np-deep);border:1px solid var(--np-line-soft);transition:.16s;
}
.np_fr:hover{border-color:var(--np-accent);transform:translateY(-2px)}
.np_fr_ava{width:38px;height:38px;flex:none;position:relative;display:block}
.np_fr_ava img{width:38px;height:38px;border-radius:12px;object-fit:cover;display:block;background:var(--np-surface3)}
.np_fr_dot{
  position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;
  border:2.5px solid var(--np-deep);background:var(--np-dim);
}
.np_fr_dot.np_on{background:var(--np-live)}
.np_fr_nm{flex:1;min-width:0}
.np_fr_nm b{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* та же история со стилем группы, что и у .np_group — ширина по тексту */
.np_fr_nm span{
  display:inline-block;max-width:100%;font-size:11px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top;
  background-repeat:no-repeat;
}

/* ---------- Комментарии ---------- */
.np_composer{border:1px solid var(--np-line-soft);background:var(--np-deep);border-radius:var(--np-r-md);transition:.16s}
.np_composer.np_open{border-color:#5B3FBF}
.np_comp_stub{display:flex;align-items:center;gap:11px;padding:12px 14px;width:100%;text-align:left;color:var(--np-dim);font-size:13.5px}
.np_comp_stub img{width:32px;height:32px;border-radius:10px;object-fit:cover;flex:none;background:var(--np-surface3)}
.np_composer.np_open .np_comp_stub{display:none}
.np_comp_body{display:none;padding:12px 14px}
.np_composer.np_open .np_comp_body{display:block}
.np_comp_foot{display:flex;align-items:center;gap:9px;margin-top:11px}
.np_comp_foot .smile_btn{margin-left:auto;cursor:pointer}

/* TinyMCE внутри профиля — в тёмную палитру, иначе это белый прямоугольник */
.np_comp_body .tox-tinymce{
  border:1px solid var(--np-line-soft) !important;border-radius:var(--np-r-sm) !important;
  background:var(--np-surface) !important;
}
.np_comp_body .tox .tox-toolbar,
.np_comp_body .tox .tox-toolbar__primary,
.np_comp_body .tox .tox-toolbar-overlord,
.np_comp_body .tox .tox-edit-area,
.np_comp_body .tox .tox-statusbar{background:var(--np-surface) !important;border-color:var(--np-line-soft) !important}
.np_comp_body .tox .tox-tbtn{color:var(--np-muted) !important}
.np_comp_body .tox .tox-tbtn svg{fill:var(--np-muted) !important}
.np_comp_body .tox .tox-tbtn:hover{background:var(--np-surface2) !important}
.np_comp_body .tox .tox-tbtn:hover svg{fill:var(--np-text) !important}
.np_comp_body textarea{
  width:100%;min-height:96px;background:var(--np-surface);color:var(--np-text);
  border:1px solid var(--np-line-soft);border-radius:var(--np-r-sm);padding:10px 12px;font:inherit;
}

.np_cm{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--np-line-soft)}
.np_cm:last-child{border-bottom:none;padding-bottom:0}
.np_cm img.np_cm_ava{width:40px;height:40px;border-radius:13px;flex:none;object-fit:cover;background:var(--np-surface3)}
.np_cm_b{flex:1;min-width:0}
.np_cm_h{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:5px}
.np_cm_h b{font-size:13.5px;font-weight:600}
.np_cm_h time{margin-left:auto;font-size:11px;color:var(--np-dim);font-family:var(--np-f-mono)}
.np_cm_t{font-size:14px;color:var(--np-muted);margin:0;word-break:break-word}

.np_empty_st{text-align:center;padding:34px 16px;color:var(--np-dim)}
.np_empty_st b{display:block;color:var(--np-muted);font-size:14px;margin-bottom:4px}
.np_empty_st p{margin:0;font-size:12.5px}

/* Существующий список комментариев приходит своей вёрсткой из
   load_users_comments. Ограничиваем высоту, чтобы длинная переписка не
   растягивала страницу: карточка всегда кончается на одном уровне,
   а список прокручивается внутри. */
.np_comments_wrap{
  margin-top:6px;max-height:520px;overflow-y:auto;
  padding-right:6px;overscroll-behavior:contain;
}
.np_comments_wrap .empty-element{display:block;text-align:center;color:var(--np-dim);font-size:13px;padding:20px}

@media (max-width:1120px){
  .np_band{grid-template-columns:1fr 1fr}
  .np_band > *:last-child{grid-column:1 / -1}
  .np_grid{grid-template-columns:1fr}
}

@media (max-width:760px){
  .np_cover{height:132px}
  .np_hero_main{margin-top:-52px;padding:0 16px;gap:14px}
  .np_ava img{width:92px;height:92px;border-radius:20px}
  .np_name h1{font-size:25px}
  .np_ident{min-width:100%}
  .np_acts{width:100%;padding-bottom:0}
  .np_acts .np_btn{flex:1}
  .np_facts{padding:13px 16px 15px}
  .np_fact{min-width:calc(50% - 1px);padding:0 12px;margin-bottom:12px}
  .np_fact:nth-child(odd){border-left:none;padding-left:0}
  .np_fact b{font-size:18px}
  .np_band{grid-template-columns:1fr}
  .np_band > *:last-child{grid-column:auto}
  .np_two{grid-template-columns:1fr}
  .np_card_b{padding:13px 14px}
  .np_meta{gap:14px;flex-wrap:wrap}
}
