/* Public listings and store use the same quiet surfaces as the home page. */
.cg-directory-page, .cg-store-page { min-width: 0; }
:is(.cg-directory-page, .cg-store-page) .toolbar { margin-bottom: 18px; }
:is(.cg-directory-page, .cg-store-page) .toolbar__title { text-transform: none; font-size: 23px; letter-spacing: -.3px; line-height: 1.25; }
:is(.cg-directory-page, .cg-store-page) .toolbar__subtitle { margin-top: 4px; color: #a3aab7; line-height: 1.5; }
:is(.cg-directory-page, .cg-store-page) > .block { padding: 18px; border: 1px solid #ffffff12; border-radius: 16px; background: #17191d; box-shadow: none; margin-bottom: 16px; }
.cg-directory-page .head_block_header { justify-content: flex-start; padding: 0; margin: 0 0 12px; }
.cg-directory-page .head_block_card_title { text-align: left; text-transform: none; font-size: 15px; font-weight: 700; }
.cg-directory-page .nav-container { min-width: 0; gap: 10px; }
.cg-directory-page .nav-scroller { min-width: 0; scrollbar-width: thin; }
.cg-directory-page .nav-list { margin: 0; padding: 0; gap: 8px; }
.cg-directory-page .nav-list a { font-size: 13px; line-height: 1.4; padding: 10px 14px; border-radius: 10px; }
.cg-directory-page .nav-arrow { flex: 0 0 32px; min-height: 36px; border: 1px solid #ffffff18; border-radius: 9px; background: #ffffff06; color: #c3cada; }
.cg-directory-page .input_new_stats { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid #ffffff16; border-radius: 12px; background: #111317; margin: 0 0 16px; }
.cg-directory-page .input_new_stats:focus-within { border-color: #7797f0; }
.cg-directory-page .input_new_stats input { flex: 1; min-width: 0; width: auto; height: 38px; padding: 8px 12px; background: none; border: 0; color: #edf0f6; font-size: 14px; }
.cg-directory-page .input_new_stats input::placeholder { color: #969eae; }
.cg-directory-page .btn-save-settings { cursor: pointer; }
:is(.cg-directory-page, .cg-store-page) :is(button, a, select):focus-visible { outline: 2px solid #9bc4ff; outline-offset: 3px; }
.cg-directory-page .table-adaptive .table-row { border: 1px solid #ffffff0d; border-radius: 10px; margin-bottom: 8px; background: #ffffff03; box-shadow: none; }
.cg-directory-page .table-adaptive .table-row:hover { border-color: #819cf44d; background: #819cf40a; }
.cg-directory-page .table-row > .row { min-height: 68px; margin: 0; padding: 10px 0; }
.cg-directory-page .table-row .with-description { min-width: 0; }
.cg-directory-page .table-row .with-description p { overflow-wrap: anywhere; margin-bottom: 2px; color: #e2e7ef; }
.cg-directory-page .table-row .with-description > span { color: #969ead; font-size: 12px; }
.cg-directory-page .place-stats { font-size: 24px; line-height: 1.2; }
.cg-directory-page .empty-element { padding: 36px 18px; color: #aeb7c7; text-align: center; }
.cg-store-page .row { margin-left: -10px; margin-right: -10px; }
.cg-store-page .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
.cg-store-page .info-block { background: none; border: 0; box-shadow: none; margin: 0 0 7px; padding: 0; min-height: 0; font-size: 13px; color: #b9c1cf; }
.cg-store-page .info-block i { display: none; }
.cg-store-page .input_new { margin: 0 0 18px; padding: 0; gap: 10px; background: none; border: 0; box-shadow: none; }
.cg-store-page .input_new :is(select,input) { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #ffffff1c; border-radius: 10px; background: #111317; color: #e6ebf4; font-size: 14px; }
.cg-store-page .cg-store-details { padding: 20px !important; border-left: 1px solid #ffffff12; }
.cg-store-page .cg-store-details__title { margin: 0 0 14px; font-size: 18px; color: #e9edf6; }
.cg-store-page .cg-store-details .noty-block { padding: 0; background: none; border: 0; box-shadow: none; }
.cg-store-page #store_service_info:empty::before { content: 'Описание появится после выбора доступной услуги.'; display: block; color: #a3adbe; line-height: 1.7; }
.cg-store-page .cg-store-details__hint { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #ffffff12; color: #949eaf; font-size: 13px; line-height: 1.7; }
@media (max-width: 991px) {
  :is(.cg-directory-page, .cg-store-page) > .block { padding: 14px; }
  .cg-directory-page .table-row > .row { display: flex; gap: 12px 0; }
  .cg-directory-page .table-row > .row > [class*="col-lg-"] { flex: 1 1 50%; width: 50%; max-width: 50%; position: relative; }
  .cg-directory-page .table-row > .row > .posabsolute { flex: 0 0 100%; max-width: 100%; text-align: left; margin-bottom: 4px; }
  .cg-store-page .cg-store-details { margin-top: 16px; border-left: 0; border-top: 1px solid #ffffff12; }
}
@media (max-width: 480px) {
  :is(.cg-directory-page, .cg-store-page) .toolbar__title { font-size: 20px; }
  .cg-directory-page .nav-list a { max-width: 240px; white-space: normal; }
  .cg-directory-page .input_new_stats input { font-size: 12px; padding-left: 6px; }
}

/* Shared controls across news, forum, complaints, users, and statistics. */
.center_block_container { min-width: 0; }
.center_block_container > .toolbar { margin-bottom: 18px; }
.center_block_container > .toolbar .toolbar__title { line-height: 1.2; letter-spacing: -.025em; }
.center_block_container > .toolbar .toolbar__subtitle { line-height: 1.45; }
.center_block_container .head_block_header { justify-content: flex-start; }
.center_block_container .head_block_card_title { text-align: left; text-transform: none; font-size: 16px; line-height: 1.3; }
.center_block_container :is(.appadmin_btn, .header_btn, .btn.btn-primary) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 16px; border-radius: 10px;
  font-weight: 700; line-height: 1.25; text-align: center; white-space: normal;
}
.center_block_container :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #95b9ff; outline-offset: 3px;
}
.center_block_container :is(.input_new_stats, .input_new) :is(input, select, textarea) {
  min-width: 0; min-height: 42px; border-radius: 10px;
}
.center_block_container .nav-container { display: flex; align-items: center; gap: 10px; min-width: 0; }
.center_block_container .nav-scroller { flex: 1; min-width: 0; }
.center_block_container .nav-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px;
  border: 1px solid rgba(146, 171, 216, .22); border-radius: 10px;
  background: #292f3c; color: #e3ebfb; font-size: 18px; cursor: pointer;
}
.center_block_container .nav-arrow:hover { background: #3a4661; border-color: #7995e3; }
.center_block_container .nav-list a { display: inline-flex; align-items: center; min-height: 40px; border-radius: 10px; }
.input_new_stats .btn-save-settings {
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px;
  margin: 0 !important; padding: 0 !important; opacity: 1 !important;
  border: 1px solid rgba(164, 185, 241, .28) !important;
  border-radius: 10px !important; background: #415b96 !important;
  box-shadow: none !important; color: #fff !important; cursor: pointer;
  line-height: 1; vertical-align: middle;
}
.input_new_stats .btn-save-settings iconify-icon { display: block; width: 22px; height: 22px; font-size: 22px; color: #fff; }
.input_new_stats .btn-save-settings i { display: block; font-size: 22px; line-height: 1; color: #fff; }
.input_new_stats .btn-save-settings:hover { background: #5573b4 !important; transform: none !important; }
.input_new_stats .btn-save-settings:active { background: #344b80 !important; }
.center_block_container .input_new_stats { align-items: center; }
.center_block_container .input_new_stats > input { height: 44px; min-height: 44px; }
.center_block_container #pagination2 :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 8px; }
.cg-stats-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 180px; padding: 28px 16px; text-align: center;
  border: 1px dashed rgba(141, 161, 199, .24); border-radius: 14px;
  background: rgba(255,255,255,.025); color: #aeb9c9;
}
.cg-stats-empty strong { color: #eef3fc; font-size: 18px; }
.cg-stats-empty__icon { color: #8296ff; font-size: 32px; line-height: 1; }
.cg-list-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 160px; padding: 24px 16px; text-align: center;
  border: 1px dashed rgba(141,161,199,.24); border-radius: 14px;
  background: rgba(255,255,255,.025); color: #aeb9c9;
}
.cg-list-empty strong { color: #eef3fc; font-size: 18px; }
.cg-list-empty__icon { color: #8296ff; font-size: 30px; line-height: 1; }

/* Player directory cards need enough width for their actions. */
.center_block_container .new_user_grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.center_block_container .new_user_grid .user {
  min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; box-shadow: none;
}
.center_block_container .new_user_grid .user_btn {
  min-height: 42px; padding: 9px 12px; margin: 0 !important;
  border: 1px solid rgba(255,255,255,.11); border-radius: 9px;
  font-size: 13px; line-height: 1.25; text-align: center;
}

/* News cards use the available width and keep images sharp. */
#new_news.new_news1 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
#new_news .new_card_for_news1 { min-width: 0; }
#new_news .new_card__block { height: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; }
#new_news .new_card__news {
  height: 100%; min-height: 315px; padding: 16px; justify-content: flex-start;
  gap: 12px; border-radius: 16px; box-shadow: none;
}
#new_news .new_card__news a { min-height: 44px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
#new_news .new_card__news a span {
  width: auto; max-width: 100%; white-space: normal; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35; font-size: 15px; font-weight: 700;
}
#new_news .new_card__news img {
  display: block; width: 100% !important; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 10px;
}
#new_news .new_card__subtitle { min-height: 36px; }
#new_news .new_card__news font { line-height: 1.4; height: auto; }
#new_news .new_card__date { margin-top: auto; color: #a8b2c1; text-align: left; }
@media (max-width: 575px) {
  .center_block_container > .toolbar { margin-bottom: 12px; }
  .center_block_container .nav-arrow { flex-basis: 36px; width: 36px; height: 36px; min-height: 36px; }
  #new_news.new_news1 { grid-template-columns: 1fr; }
}

/* Match the forum and news pages to the home page without another stylesheet. */
.cg-forum-page > .toolbar,
.cg-news-page > .toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 92px; padding: 17px 20px;
  border: 1px solid #ffffff18; border-radius: 18px;
  background: #17191d; box-shadow: none;
}
.cg-forum-page > .toolbar .toolbar__wrap,
.cg-news-page > .toolbar .toolbar__wrap { min-width: 0; }
.cg-forum-page > .toolbar .toolbar__title,
.cg-news-page > .toolbar .toolbar__title { color: #f2f5fa; font-size: 24px !important; line-height: 1.22; margin: 0; }
.cg-forum-page > .toolbar .toolbar__subtitle,
.cg-news-page > .toolbar .toolbar__subtitle { color: #aeb8c9; }
.cg-forum-page > .toolbar .toolbar__icon,
.cg-news-page > .toolbar .toolbar__icon { display: grid; place-items: center; background: linear-gradient(135deg,#5f9fff,#8174ff); color: white; }
.cg-forum-page > .toolbar .toolbar__icon i,
.cg-news-page > .toolbar .toolbar__icon i { font-size: 22px; }
.cg-forum-page #forum > * { border-radius: 16px; }
.cg-news-page #new_news .new_card__block { background: #191b20; transition: border-color .18s ease, transform .18s ease; }
.cg-news-page #new_news .new_card__block:hover { border-color: #658ce166; transform: translateY(-2px); }
.cg-news-page #new_news .new_card__news { min-height: 0; padding: 14px; gap: 10px; }
.cg-news-page #new_news .new_card__news > a { display: block; min-height: 0; padding: 0; background: none; }
.cg-news-page #new_news .new_card__news > a span { font-size: 17px; line-height: 1.32; color: #edf2fc; }
.cg-news-page #new_news .new_card__subtitle { min-height: 0; color: #aeb8c8; font-size: 13px; line-height: 1.45; }
.cg-news-page #new_news .new_card__subtitle:has(> span:empty) { display: none; }
.cg-news-page #new_news .new_card__subtitle span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-news-page #new_news .new_card__news > img { max-height: 188px; }
.cg-news-page #new_news .new_card__date { font-size: 12px; }
@media (max-width: 640px) {
  .cg-forum-page > .toolbar, .cg-news-page > .toolbar { padding: 14px; flex-wrap: wrap; }
  .cg-forum-page > .toolbar .toolbar__title, .cg-news-page > .toolbar .toolbar__title { font-size: 20px !important; }
}
