/* Font Awesome (needed by CMS widgets) */
@import url("../fonts/font-awesome.css");

/* ═══════════════════════════════════════
   CMS / WIDGETS COMPATIBILITY STYLES
   ═══════════════════════════════════════ */

/* --- Menu: {menu} outputs <li> with nested <a> and <ul> --- */
.mnav {
  list-style: none;
}

.mnav li {
  list-style: none;
  position: relative;
}

.mnav > li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .18s, background .18s;
  white-space: nowrap;
  text-decoration: none;
}

.mnav > li > a:hover {
  color: var(--bl2);
  background: rgba(33, 150, 243, .1);
}

/* Dropdown submenus from {menu} */
.mnav li.collapsible > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  padding: 8px 0;
  margin: 4px 0 0;
  list-style: none;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.mnav li.collapsible:hover > ul {
  display: block;
}

.mnav li.collapsible > ul li {
  list-style: none;
}

.mnav li.collapsible > ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.mnav li.collapsible > ul li a:hover {
  color: var(--bl2);
  background: rgba(33, 150, 243, .06);
}

/* Point indicator on collapsible items */
.mnav .point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd);
  display: inline-block;
  margin-left: 4px;
}

/* --- Utility classes used by CMS --- */
.disp-n {
  display: none;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.text-center {
  text-align: center;
}

.text-danger {
  color: var(--rd);
}

.text-success {
  color: var(--gr);
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-10 {
  margin-top: 10px;
}

.mb-0 {
  margin-bottom: 0;
}

.small,
small {
  font-size: 12px;
}

.ml-2 {
  margin-left: .5rem;
}

/* --- Bootstrap form compat for chat + widgets --- */
.form-control {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh);
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.disp-n {
    display: none;
}

.form-control:focus {
  border-color: var(--bl);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, .12);
}

.form-control::placeholder {
  color: var(--dim);
}

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

.input-group .form-control {
  flex: 1;
}

.input-group-btn {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.btn-default,
.btn-primary {
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
  border: none;
}

.btn-default:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, var(--bl), var(--bl2));
  box-shadow: 0 4px 16px rgba(33, 150, 243, .35);
}

.btn-outline-primary {
  background: transparent;
  color: var(--bl2);
  border: 1px solid var(--bl);
}

.btn-outline-primary:hover {
  background: rgba(33, 150, 243, .1);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 11px;
}

.btn-block {
  display: block;
  width: 100%;
}
.disp-n{
	display: none;
}

/* --- CMS Block / Widget styles --- */
.block {
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
}

.block_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--wh);
  letter-spacing: .3px;
  border-bottom: 1px solid var(--ln);
}

.empty-element {
  display: block;
  padding: 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--dim);
  font-size: 12px;
}

.loader::after {
  content: "Загрузка...";
}

/* --- Chat widget compat --- */
#chat {
  padding: 0;
}

/* Online dot closer to avatar */
.oui .oudot {
  bottom: 0;
  right: 0;
}

/* Submenu arrow for collapsible nav items */
.mnav li.collapsible > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform .18s;
}

.mnav li.collapsible.sub-open > a::after {
  transform: rotate(180deg);
}

/* Submenu click-based instead of hover */
.mnav li.collapsible > ul {
  display: none;
}

.mnav li.collapsible:hover > ul {
  display: none;
}

.mnav li.collapsible.sub-open > ul {
  display: block;
}

#drop_zone {
  position: relative;
}

#drop_zone.hover {
  border: 2px dashed var(--bl);
  border-radius: 10px;
  background: rgba(33, 150, 243, .05);
}

#drop_mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* --- Notification block styles --- */
.noty-block {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.noty-block.info {
  background: rgba(33, 150, 243, .1);
  border: 1px solid rgba(33, 150, 243, .2);
  color: var(--bl2);
}

.noty-block.success {
  background: rgba(41, 194, 122, .1);
  border: 1px solid rgba(41, 194, 122, .2);
  color: var(--gr);
}

.noty-block.error {
  background: rgba(244, 67, 54, .1);
  border: 1px solid rgba(244, 67, 54, .2);
  color: var(--rd);
}

.noty-block .m-icon {
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s;
}

.noty-block .m-icon:hover {
  opacity: 1;
}

.noty-block span {
  font-size: 11px;
  color: var(--dim);
  margin-left: auto;
}

/* --- Widget content styling (user lists, top, etc.) --- */
#online_users,
#top_users,
#load_last_online,
#notifications {
  padding: 12px 18px;
}

/* Events/news/forum use own element padding via .ei, .ni, .fi, .el-forum-* */
#events{
	padding: 8px;
}
#new_news,
#forumList {
  padding: 0;
}

#last_activity {
  padding: 0;
}

#online_users a,
#top_users a,
#load_last_online a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .15s;
  padding: 2px 0;
}

#online_users a:hover,
#top_users a:hover,
#load_last_online a:hover {
  color: var(--bl2);
}

#online_users a img,
#top_users a img,
#load_last_online a img {
	width: 100%;
    border-radius: 50%;
}

/* Last forum activity and events use .fi / .ei element styles from main.css */

/* --- Popover compat (Bootstrap) --- */
.popover {
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  color: var(--wh);
  z-index: 2000;
  width: 500px;
}

.popover-body {
  padding: 12px;
}

.popover .arrow::after {
  border-top-color: var(--bg2);
  border-bottom-color: var(--bg2);
}

/* --- Tooltip: Bootstrap 4 tooltip CSS (themed for newtpl) --- */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  word-wrap: break-word;
  opacity: 0;
}

.tooltip.show {
  opacity: 1;
}

.tooltip .arrow {
  position: absolute;
  display: block;
  width: .8rem;
  height: .4rem;
}

.tooltip .arrow::before {
  position: absolute;
  content: '';
  border-color: transparent;
  border-style: solid;
}

.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] {
  padding: .4rem 0;
}

.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow {
  bottom: 0;
}

.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before {
  top: 0;
  border-width: .4rem .4rem 0;
  border-top-color: var(--bg0);
}

.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] {
  padding: .4rem 0;
}

.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow {
  top: 0;
}

.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
  bottom: 0;
  border-width: 0 .4rem .4rem;
  border-bottom-color: var(--bg0);
}

.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] {
  padding: 0 .4rem;
}

.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow {
  right: 0;
  width: .4rem;
  height: .8rem;
}

.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before {
  left: 0;
  border-width: .4rem 0 .4rem .4rem;
  border-left-color: var(--bg0);
}

.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] {
  padding: 0 .4rem;
}

.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow {
  left: 0;
  width: .4rem;
  height: .8rem;
}

.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before {
  right: 0;
  border-width: .4rem .4rem .4rem 0;
  border-right-color: var(--bg0);
}

.tooltip-inner {
  max-width: 200px;
  padding: 5px 10px;
  color: var(--wh);
  text-align: center;
  background: var(--bg0);
  border: 1px solid var(--ln2);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}

/* --- Modal: Bootstrap 4 modal CSS (themed for newtpl) --- */
.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform .2s ease-out;
  transform: translateY(-30px);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: var(--bg1);
  border: 1px solid var(--ln2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .7);
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: .72;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ln);
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--wh);
  margin: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--ln);
  gap: 8px;
}

.modal-header .close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin: -1rem -1rem -1rem auto;
  opacity: .7;
}

.modal-header .close:hover {
  color: var(--wh);
  opacity: 1;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.modal-sm {
  max-width: 300px;
}

.modal-lg {
  max-width: 800px;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
  }
}

/* Noty (notification toasts) positioning */
#global_result {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* --- NProgress bar color override --- */
#nprogress .bar {
  background: var(--bl) !important;
}

#nprogress .peg {
  box-shadow: 0 0 10px var(--bl), 0 0 5px var(--bl) !important;
}

#nprogress .spinner-icon {
  border-top-color: var(--bl) !important;
  border-left-color: var(--bl) !important;
}

/* Passive mode (chat idle) */
#passive {
  padding: 30px;
  text-align: center;
  color: var(--dim);
}

#passive img {
  max-width: 80px;
  opacity: .6;
}

/* --- Forum widget --- */
#forum {
  padding: 12px 18px;
}

/* --- Authorization form in modals --- */
.authorization .form-control {
  margin-bottom: 10px;
}

.authorization .btn {
  margin-bottom: 10px;
}

/* --- News widget --- */
.vertical-center-line {
  padding: 12px 18px;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--dim);
}

.breadcrumb li a {
  color: var(--bl2);
  text-decoration: none;
}

.breadcrumb li.active {
  color: var(--mid);
}

/* --- m-icon (FA-based icons used by CMS) --- */
.m-icon {
  font-family: Font Awesome\ 5 Free;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  font-size: 1.33333em;
  line-height: .75em;
  vertical-align: -.0667em;
  font-weight: 900;
}

.m-icon.icon-trash:before { content: "\f2ed"; }
.m-icon.icon-remove:before { content: "\f00d"; }
.m-icon.icon-ok:before { content: "\f00c"; }
.m-icon.icon-pencil:before { content: "\f303"; }
.m-icon.icon-link:before { content: "\f0c1"; }
.m-icon.icon-time:before { font-weight: 400; content: "\f017"; }
.m-icon.icon-user:before { content: "\f007"; }
.m-icon.icon-up:before { content: "\f077"; }
.m-icon.icon-down:before { content: "\f078"; }
.m-icon.icon-left:before { content: "\f104"; }
.m-icon.icon-right:before { content: "\f105"; }
.m-icon.icon-plus:before { content: "\f067"; }
.m-icon.icon-minus:before { content: "\f068"; }
.m-icon.icon-bank:before { content: "\f19c"; }
.m-icon.icon-marker:before { content: "\f041"; }
.m-icon.icon-vk:before { font-family: "Font Awesome 5 Brands"; content: "\f189"; }
.m-icon.icon-steam:before { font-weight: 400; font-family: "Font Awesome 5 Brands"; content: "\f3f6"; }
.m-icon.icon-fb:before { font-family: "Font Awesome 5 Brands"; content: "\f39e"; }
.m-icon.icon-bars:before { content: "\f0c9"; }
.m-icon.icon-compress:before { content: "\f066"; }

/* --- with_code (user content) --- */
.with_code {
  overflow-wrap: break-word;
  padding: 18px;
}

.with_code ol {
  list-style: decimal;
  margin-left: 15px;
}

.with_code ul {
  list-style: disc;
  margin-left: 15px;
}

.with_code img {
  max-width: 100%;
  border-radius: 8px;
}

.with_code a {
  color: var(--bl2);
}

/* --- Global result notifications --- */
.result_ok, .result_ok_b {
  display: block;
  position: fixed;
  z-index: 1200;
  top: 16px;
  right: 18px;
  color: var(--cy, #4d86d1);
  font-size: 16px;
}

.result_error, .result_error_b {
  display: block;
  position: fixed;
  z-index: 1200;
  top: 17px;
  right: 18px;
  color: #e74c3c;
  font-size: 16px;
}

/* --- Avatar images inside profile dropdown --- */
.pfava img,
.dava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* --- Counter badge (online users etc.) --- */
.cnt {
  font-size: 11px;
  font-weight: 700;
  color: var(--bl2);
  background: rgba(33, 150, 243, .12);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

/* --- Quick links widget container --- */
.qlnks {
  padding: 4px 0;
}

/* --- Table styling for CMS tables --- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--ln);
}

.table th {
  font-weight: 700;
  color: var(--wh);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.table td {
  color: var(--mid);
}

.table tr:last-child td {
  border-bottom: none;
}

/* --- Pagination --- */
.pagination {
	display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  background: var(--bg2);
  border: 1px solid var(--ln2);
  text-decoration: none;
  transition: all .15s;
}

.pagination li a:hover {
  border-color: var(--bl);
  color: var(--bl2);
}

.pagination li.active span {
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
  border-color: transparent;
}

/* --- Alert boxes --- */
.alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.alert-danger {
  background: rgba(244, 67, 54, .1);
  border: 1px solid rgba(244, 67, 54, .2);
  color: var(--rd);
}

.alert-success {
  background: rgba(41, 194, 122, .1);
  border: 1px solid rgba(41, 194, 122, .2);
  color: var(--gr);
}

.alert-info {
  background: rgba(33, 150, 243, .1);
  border: 1px solid rgba(33, 150, 243, .2);
  color: var(--bl2);
}

.alert-warning {
  background: rgba(255, 179, 0, .1);
  border: 1px solid rgba(255, 179, 0, .2);
  color: var(--gd);
}

/* --- Responsive grid for .page layout --- */
@media (max-width: 1280px) {
  .page {
    grid-template-columns: 1fr 315px;
  }

  .page > div:first-child {
    grid-column: 1 / -1;
  }

  .page > div:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 18px;
  }

  .page > div:first-child {
    grid-template-columns: 1fr;
  }

  .hdr-i {
    padding: 0 14px;
    gap: 12px;
  }

  .mnav {
    display: none;
  }

  .snav-i {
    padding: 0 14px;
  }
}

@media (max-width: 680px) {
  .hdr-i {
    height: 54px;
  }

  .bal {
    display: none;
  }

  .pfbtn > div:not(.pfava) {
    display: none;
  }

  .pfcaret {
    display: none;
  }

  .drop {
    right: -10px;
  }
}

/* ═══════════════════════════════════════
   ELEMENT TEMPLATES STYLES
   ═══════════════════════════════════════ */

/* --- Newtpl design adaptation: img avatars in circle containers --- */
.ouava img,
.viava img,
.acava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cava {
  flex-shrink: 0;
}

.cava img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.eava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ni-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Links using newtpl element classes */
a.oui,
a.vi,
a.acti,
a.ni {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

a.oui:hover,
a.vi:hover {
  text-decoration: none;
}

/* CSS counter for top users rank numbers */
#top_users {
  counter-reset: acti-rank;
}

#top_users .acti {
  counter-increment: acti-rank;
  padding: 13px 22px;
}

#top_users .acrank::before {
  content: counter(acti-rank);
}

#top_users .acti:nth-child(1) .acrank {
  color: var(--gd);
}

#top_users .acti:nth-child(2) .acrank {
  color: #c0c0c0;
}

#top_users .acti:nth-child(3) .acrank {
  color: #cd7f32;
}

/* Chat messages container */
#chat_messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px;
  max-height: 420px;
  overflow-y: auto;
}

#chat_messages::-webkit-scrollbar {
  width: 4px;
}

#chat_messages::-webkit-scrollbar-thumb {
  background: var(--bg4);
  border-radius: 4px;
}

/* Chat message admin actions (show on hover) */
.cmsg .m-icon {
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  color: var(--dim);
}

.cmsg:hover .m-icon {
  opacity: .6;
}

.cmsg .m-icon:hover {
  opacity: 1;
  color: var(--bl2);
}

/* Chat message images inside bubble */
.cbbl img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  margin-top: 4px;
}

/* Event delete icon */
.ei .m-icon.icon-remove {
  flex-shrink: 0;
  align-self: center;
  cursor: pointer;
  color: var(--dim);
  font-size: 14px;
  transition: color .15s;
}

.ei .m-icon.icon-remove:hover {
  color: var(--rd);
}

/* Events list link styles */
.elist a.etxt {
  text-decoration: none;
}

.elist a.euser {
  text-decoration: none;
}

/* .eava as link (CMS event has <a> avatar) */
a.eava {
  text-decoration: none;
}

/* .fi as link (forum activity, forum list) */
a.fi {
  text-decoration: none;
  color: inherit;
}

a.fi:hover {
  text-decoration: none;
}

.fava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Forum section titles inside #forumList */
.forum-sec-t {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 14px 20px 6px;
}

.forum-sec:first-child .forum-sec-t {
  padding-top: 10px;
}

/* .ni as link (CMS news items) */
a.ni {
  text-decoration: none;
  color: inherit;
}

a.ni:hover {
  text-decoration: none;
}

/* Event link styles */
a.emore {
  text-decoration: none;
}

/* --- el-news-full (new.tpl, new_new.tpl — full news cards) --- */
.el-news-full {
  padding: 22px;
  border-bottom: 1px solid var(--ln);
}

.el-news-full:last-child {
  border-bottom: none;
}

.el-news-full-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 240px;
  margin-bottom: 14px;
}

.el-news-full-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--wh);
  margin-bottom: 8px;
  text-decoration: none;
}

.el-news-full-title:hover {
  color: var(--bl2);
}

.el-news-full-text {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 10px;
}

.el-news-full-meta {
  font-size: 11px;
  color: var(--dim);
}

/* --- el-comment (news comments) --- */
.el-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ln);
}

.el-comment:last-child {
  border-bottom: none;
}

.el-comment-ava {
  flex-shrink: 0;
}

.el-comment-ava img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.el-comment-body {
  flex: 1;
  min-width: 0;
}

.el-comment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.el-comment-author {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.el-comment-date {
  font-size: 11px;
  color: var(--dim);
}

/* --- el-friend (friend, user, user_full) --- */
.el-friend {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
  align-items: center;
}

.el-friend:last-child {
  border-bottom: none;
}

.el-friend-ava img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ln2);
}

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

.el-friend-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 6px;
}

.el-friend-name small {
  font-weight: 400;
  opacity: .6;
}

.el-friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.el-friend-actions a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bl2);
  background: rgba(33, 150, 243, .08);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}

.el-friend-actions a:hover {
  background: rgba(33, 150, 243, .18);
  color: var(--bl);
}

/* --- el-mini-friend --- */
.el-mini-friend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--mid);
  font-size: 12px;
  font-weight: 500;
  transition: background .15s;
}

.el-mini-friend:hover {
  background: var(--bg3);
}

.el-mini-friend img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- el-dialog (messages dialogs) --- */
.el-dialog {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ln);
  gap: 14px;
}

.el-dialog:last-child {
  border-bottom: none;
}

.el-dialog-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}

.el-dialog-main img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--ln2);
}

.el-dialog-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.el-dialog-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--wh);
}

.el-dialog-date {
  font-size: 11px;
  color: var(--dim);
}

.el-dialog-status {
  font-size: 11px;
  font-weight: 600;
}

.el-dialog-status.read { color: var(--dim); }
.el-dialog-status.unread { color: var(--gr); }
.el-dialog-status.pending { color: var(--bl2); }

.el-dialog-del {
  flex-shrink: 0;
  cursor: pointer;
  color: var(--dim);
  padding: 6px;
  border-radius: 8px;
  transition: all .15s;
}

.el-dialog-del:hover {
  color: var(--rd);
  background: rgba(244, 67, 54, .1);
}

/* --- el-im-msg (private messages) --- */
.el-im-msg {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ln);
}

.el-im-msg:last-child {
  border-bottom: none;
}

.el-im-msg img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.el-im-msg-body {
  flex: 1;
  min-width: 0;
}

.el-im-msg-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.el-im-msg-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--bl2);
  text-decoration: none;
}

.el-im-msg-date {
  font-size: 11px;
  color: var(--dim);
}

/* --- el-companion (companion search) --- */
.el-companion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ln);
}

.el-companion:last-child {
  border-bottom: none;
}

.el-companion img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.el-companion a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.el-companion-action {
  margin-left: auto;
  font-size: 12px;
  color: var(--bl2);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(33, 150, 243, .08);
  transition: all .15s;
}

.el-companion-action:hover {
  background: rgba(33, 150, 243, .18);
}

/* --- el-msg-controls (messages_place) --- */
.el-msg-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.el-passive {
  padding: 30px;
  text-align: center;
  color: var(--dim);
}

.el-passive img {
  max-width: 80px;
  opacity: .6;
  margin-bottom: 10px;
}

/* --- Forum elements --- */
.el-forum-section {
  margin-bottom: 22px;
}

.el-forum-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--wh);
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
}

.el-forum-list {
  /* container for forum items */
}

.el-forum-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
  transition: background .15s;
}

.el-forum-item:last-child {
  border-bottom: none;
}

.el-forum-item:hover {
  background: var(--bg3);
}

.el-forum-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.el-forum-item-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.el-forum-item-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--wh);
  text-decoration: none;
  margin-bottom: 3px;
}

.el-forum-item-name:hover {
  color: var(--bl2);
}

.el-forum-item-desc {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.4;
}

.el-forum-item-last {
  text-align: right;
  flex-shrink: 0;
  max-width: 200px;
}

.el-forum-item-topic {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bl2);
  text-decoration: none;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-forum-item-meta {
  font-size: 11px;
  color: var(--dim);
}

.el-forum-item-meta a {
  color: var(--bl2);
  text-decoration: none;
}

.el-forum-item-empty {
  font-size: 12px;
  color: var(--dim);
}

/* --- Topic items --- */
.el-topic-heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--wh);
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
}

.el-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
  transition: background .15s;
}

.el-topic-item:last-child {
  border-bottom: none;
}

.el-topic-item:hover {
  background: var(--bg3);
}

.el-topic-fixed {
  border-left: 3px solid var(--bl);
}

.el-topic-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.el-topic-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.el-topic-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wh);
  margin-bottom: 4px;
}

.el-topic-name a {
  color: inherit;
  text-decoration: none;
}

.el-topic-name a:hover {
  color: var(--bl2);
}

.el-topic-name i {
  color: var(--rd);
  margin-right: 4px;
}

.el-topic-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--dim);
}

.el-topic-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.el-topic-stats i {
  font-size: 10px;
  color: var(--bl2);
}

.el-topic-stats a {
  color: var(--bl2);
  text-decoration: none;
}

.el-topic-last {
  text-align: right;
  flex-shrink: 0;
}

.el-topic-last-meta {
  display: block;
  font-size: 12px;
  color: var(--dim);
}

.el-topic-last-meta a {
  color: var(--bl2);
  text-decoration: none;
}

.el-topic-last-date {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.el-topic-empty {
  font-size: 12px;
  color: var(--dim);
}

/* --- Forum message (forum_message) --- */
.el-forum-msg {
  border-bottom: 1px solid var(--ln);
  margin-bottom: 0;
}

.el-forum-msg:last-child {
  border-bottom: none;
}

.el-forum-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--ln);
}

.el-forum-msg-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--bl2);
  text-decoration: none;
}

.el-forum-msg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.el-forum-msg-actions .m-icon {
  cursor: pointer;
  color: var(--dim);
  font-size: 14px;
  transition: color .15s;
}

.el-forum-msg-actions .m-icon:hover {
  color: var(--bl2);
}

.el-forum-msg-date {
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
}

.el-forum-msg-body {
  display: flex;
  gap: 20px;
  padding: 18px;
}

.el-forum-msg-sidebar {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}

.el-forum-msg-sidebar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ln2);
  margin-bottom: 8px;
}

.el-forum-msg-group {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.el-forum-msg-counters {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}

.el-forum-msg-counters span {
  display: block;
}

.el-forum-msg-content {
  flex: 1;
  min-width: 0;
}

.el-forum-msg-edited {
  margin-top: 12px;
  font-size: 11px;
  color: var(--dim);
  font-style: italic;
}

.el-forum-msg-edited a {
  color: var(--bl2);
  text-decoration: none;
}

.el-forum-msg-signature {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ln);
  opacity: .65;
  font-size: 12px;
}

.el-forum-msg-bottom {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--ln);
  background: var(--bg2);
}

/* --- Table helpers --- */
.el-table-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
}

.el-table-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--mid);
}

.el-table-user:hover {
  color: var(--bl2);
}

.hidden-tr {
  display: none;
}

.table-responsive {
  overflow-x: auto;
}

/* --- Popover avatar image --- */
.el-popover-ava {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

/* --- Smiles popover --- */
.smiles_box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.smiles_box img.smile {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform .1s;
  border-radius: 4px;
}

.smiles_box img.smile:hover {
  transform: scale(1.3);
}


.disp-b {
  display: block;
}

.disp-n {
    display: none;
}

/* --- Sticker tabs in popover --- */
.stickertab {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ln);
}

.stickertab img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px;
  transition: background .15s;
}

.stickertab img:hover {
  background: var(--bg3);
}

/* --- Bootstrap misc compat --- */
.form-group {
  margin-bottom: 14px;
}

.form-group label h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--wh);
  margin-bottom: 6px;
}

.btn-group {
  display: inline-flex;
  gap: 0;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: 10px 0 0 10px;
}

.btn-group .btn:last-child {
  border-radius: 0 10px 10px 0;
}

.btn-group .btn:only-child {
  border-radius: 10px;
}

.btn-group-toggle label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 8px;
  margin: 2px;
  cursor: pointer;
  transition: all .15s;
}

.btn-group-toggle label.active {
  background: var(--bl);
  color: #fff;
  border-color: var(--bl);
}

.input-group-sm .form-control {
  padding: 5px 10px;
  font-size: 12px;
}

.input-group-sm .btn {
  padding: 5px 10px;
  font-size: 12px;
}

.input-group-prepend {
  display: flex;
}

.input-group-prepend .btn {
  border-radius: 10px 0 0 10px;
}

.input-group-prepend + .form-control,
.input-group-prepend + select.form-control {
  border-radius: 0 10px 10px 0;
}

.w-100 {
  width: 100%;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

.c-p {
  cursor: pointer;
}

.text-warning {
  color: var(--gd);
}

.text-info {
  color: var(--bl2);
}

.text-default {
  color: var(--dim);
}

.label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.label-success { background: rgba(41, 194, 122, .15); color: var(--gr); }
.label-danger { background: rgba(244, 67, 54, .15); color: var(--rd); }
.label-warning { background: rgba(255, 179, 0, .15); color: var(--gd); }
.label-info { background: rgba(33, 150, 243, .15); color: var(--bl2); }
.label-primary { background: rgba(33, 150, 243, .15); color: var(--bl2); }

/* --- Bootstrap grid compat (used in forums, price_list, etc.) --- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.col-lg-4 { flex: 0 0 calc(33.333% - 15px); }
.col-lg-6 { flex: 0 0 calc(50% - 11px); }
.col-lg-8 { flex: 0 0 calc(66.666% - 15px); }
.col-lg-12 { flex: 0 0 100%; }

.d-none { display: none; }
.d-block { display: block; }
.d-lg-block { display: block; }
.d-lg-none { display: none; }

@media (max-width: 960px) {
  .col-lg-4,
  .col-lg-6,
  .col-lg-8,
  .col-lg-12 {
    flex: 0 0 100%;
  }

  .d-lg-block { display: none; }
  .d-lg-none { display: block; }

  .el-forum-msg-sidebar {
    display: none;
  }

  .el-topic-last,
  .el-forum-item-last {
    display: none;
  }
}

/* --- Server block (copied from standart, needs basic styling) --- */
.server {
  padding: 18px;
  border-bottom: 1px solid var(--ln);
}

.server h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--wh);
  margin-bottom: 10px;
}

.server h3 a {
  color: var(--wh);
  text-decoration: none;
}

.server h3 a:hover {
  color: var(--bl2);
}

/* --- Rank image in stats --- */
img.rank {
  height: 24px;
  vertical-align: middle;
}

/* --- Smile input in forum (messages_place) --- */
.smile_input_forum {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════════════════════════════════
   FULL-WIDTH SECTIONS (below 3-column grid)
   ═══════════════════════════════════════ */

.sec-wide {
  max-width: 1520px;
  margin: 0 auto;
  padding: 11px 28px;
}

.sec-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.sec-pad {
  padding: 18px 20px;
}

.ch-sub {
  font-size: 11px;
  color: var(--bl2);
  font-weight: 700;
  margin-left: auto;
}

.ch-live {
  font-size: 11px;
  color: var(--gr);
  font-weight: 700;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ch-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,179,0,.15);
  border: 1px solid rgba(255,179,0,.3);
  color: var(--gd);
  font-weight: 700;
}

/* --- Popular maps --- */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.map-card {
  background: linear-gradient(135deg, rgba(var(--mc), .06), rgba(var(--mc), .02));
  border: 1px solid rgba(var(--mc), .2);
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}

.map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--mc), .25);
}

.map-card-b {
  padding: 12px 12px 8px;
  position: relative;
  min-height: 44px;
}

.map-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.map-card-info {
  padding: 0 12px 12px;
}

.map-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #eef2fa;
}

.map-bar {
  height: 4px;
  background: rgba(0,0,0,.4);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.map-bar-f {
  height: 100%;
  border-radius: 3px;
}

.map-pct {
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.map-cnt {
  font-size: 10px;
  color: var(--dim);
  font-weight: 400;
  margin-left: 4px;
}

.maplist-box {
  background: var(--bg2);
  border: 1px solid var(--ln2);
  border-radius: 12px;
  padding: 14px;
}

.maplist-t {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
  margin-bottom: 12px;
}

.maplist-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maplist-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.maplist-n {
  width: 90px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  flex-shrink: 0;
}

.maplist-bar {
  flex: 1;
  height: 7px;
  background: rgba(0,0,0,.4);
  border-radius: 4px;
  overflow: hidden;
}

.maplist-bar-f {
  height: 100%;
  border-radius: 4px;
}

.maplist-v {
  font-size: 11px;
  font-weight: 700;
  width: 32px;
  text-align: right;
}

/* --- Map rotation --- */
.rot-current {
  border-radius: 13px;
  background: linear-gradient(135deg, #0a1628, #0f2040);
  border: 1px solid rgba(33,150,243,.3);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.rot-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  background: rgba(41,194,122,.15);
  border: 1px solid rgba(41,194,122,.4);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gr);
  letter-spacing: .5px;
}

.rot-info {
  padding: 10px 14px 14px;
}

.rot-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wh);
}

.rot-sub {
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
}

.rot-queue-t {
  font-size: 11px;
  color: var(--dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.rot-queue {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rot-q-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
}

.rot-q-item.next {
  border-color: rgba(33,150,243,.25);
}

.rot-q-item span:first-of-type {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mid);
}

.map-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.map-next {
  background: rgba(33,150,243,.15);
  color: var(--bl2);
}

.map-q {
  background: rgba(255,255,255,.05);
  color: var(--dim);
}

/* --- Weapons --- */
.wpn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.wpn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(var(--wc), .08), rgba(var(--wc), .03));
  border: 1px solid rgba(var(--wc), .18);
  transition: border-color .15s;
  cursor: pointer;
}

.wpn-row:hover {
  border-color: rgba(var(--wc), .4);
}

.wpn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.wpn-info {
  flex: 1;
}

.wpn-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--wh);
}

.wpn-bar {
  height: 5px;
  background: rgba(0,0,0,.4);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.wpn-bar-f {
  height: 100%;
  border-radius: 3px;
}

.wpn-stat {
  text-align: right;
  flex-shrink: 0;
}

.wpn-pct {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.wpn-lbl {
  font-size: 10px;
  color: var(--dim);
}

.wpn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wpn-cell {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
  cursor: pointer;
  transition: border-color .15s;
}

.wpn-cell:hover {
  border-color: var(--bl);
}

.wpn-cell-n {
  font-size: 10px;
  color: var(--dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.wpn-cell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.wpn-cell-f {
  height: 4px;
  border-radius: 3px;
  flex: 0 0 70%;
}

.wpn-cell-bar span {
  font-size: 12px;
  font-weight: 800;
}

/* --- Bonuses --- */
.bonus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bonus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--ln2);
}

.bonus-name {
  font-size: 13px;
  color: var(--mid);
  font-weight: 600;
}

.bonus-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.bonus-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(33,150,243,.1);
  border: 1px solid rgba(33,150,243,.25);
  color: var(--bl2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}

.bonus-link:hover {
  background: rgba(33,150,243,.2);
}

/* --- Project stats: .pstat-cell, .pstat-v, .pstat-l defined in main.css --- */

/* --- Roulette --- */
.rl-controls {
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ln);
}

.rl-btn-play {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .18s;
  box-shadow: 0 4px 14px rgba(33,150,243,.3);
}

.rl-btn-sec {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--bg2);
  color: var(--mid);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ln2);
  cursor: pointer;
  transition: all .18s;
}

.rl-sep {
  width: 1px;
  height: 28px;
  background: var(--ln);
  margin: 0 4px;
}

.rl-chk {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--dim);
  cursor: pointer;
  user-select: none;
}

.rl-chk input {
  accent-color: var(--bl);
  width: 15px;
  height: 15px;
}

.rl-speed {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-speed input {
  flex: 1;
  accent-color: var(--bl);
}

.rl-speed span {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  opacity: .65;
}

.rl-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
  font-weight: 600;
}

.rl-track-wrap {
  padding: 20px;
  position: relative;
}

.rl-selector {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  width: 3px;
  height: calc(100% - 8px);
  background: rgba(255,179,0,.8);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255,179,0,.6);
}

.rl-selector::before,
.rl-selector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.rl-selector::before {
  top: -6px;
  border-top: 10px solid rgba(255,179,0,.9);
}

.rl-selector::after {
  bottom: -6px;
  border-bottom: 10px solid rgba(255,179,0,.9);
}

.rl-fade {
  position: absolute;
  top: 20px;
  width: 100px;
  height: calc(100% - 40px);
  z-index: 5;
  pointer-events: none;
}

.rl-fade-l {
  left: 20px;
  background: linear-gradient(to right, var(--bg1), transparent);
  border-radius: 12px 0 0 12px;
}

.rl-fade-r {
  right: 20px;
  background: linear-gradient(to left, var(--bg1), transparent);
  border-radius: 0 12px 12px 0;
}

.rl-track-inner {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ln2);
}

.rl-track {
  display: flex;
  gap: 12px;
  padding: 12px;
  will-change: transform;
}

.rl-winner {
  margin: 0 20px 20px;
  padding: 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,179,0,.1), rgba(255,109,0,.06));
  border: 1px solid rgba(255,179,0,.3);
}

.rl-win-label {
  font-size: 11px;
  color: var(--gd);
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rl-win-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rl-win-thumb {
  width: 60px;
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

.rl-win-info {
  flex: 1;
}

.rl-win-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--wh);
}

.rl-win-meta {
  font-size: 12px;
  color: var(--mid);
  margin-top: 3px;
}

.rl-win-dl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bl3), var(--bl));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

/* --- Responsive full-width sections --- */
@media (max-width: 960px) {
  .sec-wide {
    padding: 8px 12px;
  }

  .sec-2col {
    grid-template-columns: 1fr;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .wpn-grid {
    grid-template-columns: 1fr;
  }

  .rl-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .rl-sep {
    display: none;
  }

  .rl-status {
    margin-left: 0;
    text-align: center;
  }
}


.mnav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

/* ===== БУРГЕР МЕНЮ ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--mid);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .mnav {
		position: fixed;
        top: 52px;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: var(--bg0);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
      	border-top: 1px solid var(--bg4);
    }
    
    .mnav.active {
        left: 0;
    }
    
    .mnav a {
        padding: 12px 20px;
        border-radius: 0;
        white-space: normal;
        justify-content: flex-start;
    }
    
    .mnav li {
        width: 100%;
        list-style: none;
    }
    
    .mnav .collapsible > ul {
        display: none;
        background: rgba(0, 0, 0, 0.2);
        padding-left: 15px;
    }
    
    .mnav .collapsible.open > ul {
        display: block;
    }
}