﻿:root {
  --body: #202434;
  --top: #242737;
  --top-2: #33374b;
  --panel: #242733;
  --panel-dark: #20232e;
  --panel-line: #343847;
  --text: #d6d7df;
  --muted: #9498a8;
  --soft: #777c8c;
  --red: #ff2525;
  --blue: #4f86c5;
  --green: #54d26a;
  --yellow: #ffd51f;
  --shadow: 0 12px 26px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(26, 31, 46, .74), rgba(26, 31, 46, .96)),
    radial-gradient(circle at 58% 18%, rgba(122, 141, 166, .28), transparent 28%),
    linear-gradient(120deg, transparent 0 62%, rgba(0, 0, 0, .18) 62% 100%),
    repeating-linear-gradient(30deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    #1b2130;
  font-family: Arial, Tahoma, sans-serif;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  inset: 92px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .08), transparent 26%),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  opacity: .35;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 1100px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
}

.topbar {
  height: 58px;
  background: var(--top);
}

.topbar-inner {
  width: 1100px;
  max-width: calc(100% - 28px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #d7d8df;
  border-left: 1px solid rgba(255,255,255,.05);
  font-weight: 700;
  font-size: 13px;
}

.main-nav a:hover {
  background: rgba(255,255,255,.045);
}

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-dropdown > button {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #d7d8df;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.nav-dropdown.open > button {
  background: rgba(255,255,255,.045);
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  display: none;
  min-width: 136px;
  padding: 0;
  background: #33374b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.main-nav .nav-dropdown-menu a {
  display: flex;
  height: 42px;
  padding: 0 16px;
  border-left: 0;
}

.main-nav .nav-dropdown-menu a:hover {
  background: rgba(255,255,255,.06);
}

.main-nav .download-link {
  color: var(--red);
}

.auth-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
}

.auth-entry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 25px;
  color: #73a8df;
  border: 2px solid #3f7fc7;
  font-size: 13px;
  line-height: 1;
}

.auth-entry a:hover {
  color: #d9ecff;
  background: rgba(63, 127, 199, .12);
}

.signed-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6e7ee;
}

.signed-profile strong {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signed-profile button {
  height: 25px;
  color: #73a8df;
  background: transparent;
  border: 1px solid #3f7fc7;
  cursor: pointer;
}

.profile-dropdown {
  position: relative;
}

.profile-toggle {
  display: grid;
  grid-template-columns: 1fr 36px 14px;
  align-items: center;
  gap: 8px;
  min-width: 138px;
  height: 58px;
  padding: 0;
  color: #f0f1f6;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.profile-name {
  max-width: 88px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-arrow {
  color: #d8dbe5;
  font-size: 17px;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 58px;
  z-index: 30;
  display: none;
  width: 178px;
  padding: 0;
  background: #33374b;
  border-top: 1px solid #5383c1;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}

.profile-menu.open {
  display: block;
}

.profile-menu a,
.profile-menu button,
.profile-upload {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 14px;
  color: #d7d9e3;
  background: transparent;
  border: 0;
  text-align: left;
  white-space: nowrap;
  font: inherit;
  line-height: 34px;
  cursor: pointer;
}

.profile-upload span {
  display: block;
}

.profile-menu a:hover,
.profile-menu button:hover,
.profile-upload:hover {
  color: #fff;
  background: rgba(255, 255, 255, .045);
}

.profile-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar,
.avatar,
.chat-avatar {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #d2d2d2 0 20%, transparent 21%),
    radial-gradient(circle at 50% 75%, #d2d2d2 0 28%, transparent 29%),
    #7b8088;
}

.default-silhouette {
  position: relative;
  overflow: hidden;
  background: #e3e6e8;
}

.default-silhouette::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 21%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: #abb3b7;
}

.default-silhouette::after {
  content: "";
  position: absolute;
  left: 11%;
  top: 66%;
  width: 78%;
  height: 58%;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  background: #abb3b7;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.profile-avatar img,
.custom-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.breadcrumb {
  height: 36px;
  display: flex;
  align-items: center;
  color: #a7aaba;
  background: var(--top-2);
  font-size: 12px;
}

.page {
  padding: 26px 0 50px;
}

.brand-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.logo-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(45deg, transparent 32%, #eaeaea 33% 45%, transparent 46%),
    linear-gradient(-45deg, transparent 32%, #d82323 33% 45%, transparent 46%),
    #20242f;
  border: 2px solid #4f566b;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.site-logo strong {
  display: block;
  color: #e6e7ee;
  font-size: 32px;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}

.site-logo small {
  display: block;
  margin-top: 5px;
  color: #a7acbd;
  font-weight: 700;
}

.servers {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.server-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  width: 250px;
  min-height: 96px;
  padding: 14px;
  background: rgba(32, 35, 46, .95);
  box-shadow: var(--shadow);
}

.server-icon {
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #276f95;
  font-size: 34px;
  font-weight: 800;
}

.server-box h2,
.server-box p {
  margin: 0;
}

.server-box h2 {
  margin-bottom: 7px;
  color: #e8e9f0;
  font-size: 13px;
}

.server-box p {
  color: #b3b6c4;
  font-size: 12px;
  line-height: 1.35;
}

.content-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

.left-side,
.main-side {
  display: grid;
  gap: 24px;
}

.panel {
  background: rgba(32, 35, 46, .96);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0;
  padding: 26px 26px 18px;
  color: #e5e6ed;
  font-size: 16px;
}

.panel h3 span {
  color: var(--muted);
  margin-left: 8px;
  font-size: 13px;
}

.online-note {
  margin: -8px 26px 12px;
  color: #7f8494;
  font-size: 11px;
  line-height: 1.35;
}

.online-empty {
  margin: 0 26px;
  padding: 11px 0 18px;
  color: #a4a8b5;
  border-top: 1px solid var(--panel-line);
}

.nav-panel {
  padding-bottom: 16px;
}

.nav-panel a {
  display: block;
  margin: 0 26px;
  padding: 10px 0;
  color: #c2c4cf;
  border-top: 1px solid var(--panel-line);
}

.nav-panel a:hover {
  color: #fff;
}

.user,
.rating {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 26px;
  padding: 11px 0;
  border-top: 1px solid var(--panel-line);
}

.user-link {
  width: calc(100% - 52px);
  color: inherit;
  background: transparent;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.user-link:hover strong {
  color: #8dbef2;
}

.avatar {
  width: 34px;
  height: 34px;
}

.img-one {
  background:
    linear-gradient(135deg, rgba(82, 154, 180, .9), rgba(31, 50, 71, .9)),
    #5d697a;
}

.img-two {
  background:
    linear-gradient(135deg, #dfeeff, #cd8b37),
    #5d697a;
}

.owner-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2e82a4, #203044);
  font-weight: 900;
}

.owner-avatar.default-silhouette {
  display: block;
  color: transparent;
  background: #e3e6e8;
}

.user strong,
.user span,
.rating strong,
.rating span {
  display: block;
}

.user strong,
.rating strong {
  color: #f0f1f5;
  font-size: 13px;
}

.user span,
.rating span {
  color: #a4a8b5;
  font-size: 12px;
  margin-top: 3px;
}

.online-rank {
  color: #fff !important;
}

.group-badge {
  display: block;
  color: #a4a8b5;
  font-size: 12px;
  margin-top: 3px;
}

.group-main-admin {
  color: #ff3030 !important;
}

.group-vip {
  color: #54d26a !important;
}

.group-admin {
  color: #55b7ff !important;
}

.group-moderator {
  color: #f2c94c !important;
}

.nick-vip {
  color: #fff !important;
}

.nick-admin {
  color: #55b7ff !important;
}

.nick-main-admin {
  color: #ff3030 !important;
}

.nick-moderator {
  color: #f2c94c !important;
}

.yellow {
  color: var(--yellow) !important;
}

.rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.rank-dark {
  background: #151923;
  border: 2px solid #f2f2f2;
}

.rank-gold {
  color: #34220a;
  background: #ffbe3d;
}

.rank-red {
  background: #b71f2b;
  border: 2px solid #eee;
}

.promo {
  position: relative;
  min-height: 415px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, .12), transparent 18%),
    linear-gradient(120deg, rgba(80, 80, 80, .95), rgba(40, 40, 43, .97));
  box-shadow: var(--shadow);
}

.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.25), transparent 35%),
    radial-gradient(circle at 60% 50%, rgba(255, 194, 73, .12), transparent 35%);
}

.promo-text {
  position: relative;
  z-index: 2;
  padding: 52px 0 0 44px;
}

.promo h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 30px;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}

.promo-text a {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  background: #4f86c5;
  font-weight: 800;
}

.gift {
  position: absolute;
  width: 110px;
  height: 92px;
  transform: rotate(-13deg);
  background:
    linear-gradient(90deg, transparent 41%, #f3b039 42% 58%, transparent 59%),
    linear-gradient(0deg, transparent 38%, #f3b039 39% 56%, transparent 57%),
    #111;
  border: 2px solid #292929;
  box-shadow: 0 18px 18px rgba(0,0,0,.32);
}

.gift::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: -24px;
  height: 28px;
  border-radius: 50% 50% 0 0;
  border: 9px solid #f6b84a;
  border-bottom: 0;
}

.gift span {
  position: absolute;
  left: 18px;
  top: 35px;
  z-index: 2;
  padding: 6px 9px;
  color: #1a1a1a;
  background: #fff4cd;
  font-weight: 900;
  transform: rotate(8deg);
}

.gift-1 { left: 175px; top: 74px; }
.gift-2 { left: 60px; top: 160px; transform: rotate(-20deg); }
.gift-3 { left: 365px; top: 200px; width: 132px; height: 108px; transform: rotate(7deg); }
.gift-4 { right: 290px; top: 86px; transform: rotate(15deg); }
.gift-5 { right: 120px; top: 160px; transform: rotate(15deg); }
.gift-6 { right: 260px; bottom: 54px; transform: rotate(11deg); }

.chat {
  padding-bottom: 18px;
}

.message {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto 26px;
  gap: 14px;
  align-items: start;
  margin: 0 26px;
  padding: 12px 0;
  border-top: 1px solid var(--panel-line);
}

.chat-avatar {
  width: 38px;
  height: 38px;
}

.chat-avatar.small {
  background:
    linear-gradient(135deg, #ddd, #c84d31),
    #7b8088;
}

.special {
  background:
    linear-gradient(135deg, #dbefff, #2f556d),
    #7b8088;
}

.red-name {
  color: var(--red);
}

.inline-profile-link,
.dialog-name {
  padding: 0;
  color: #f0f1f6;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.inline-profile-link:hover,
.dialog-name:hover {
  color: #9ec6f3;
}

.chat p,
.message p {
  margin: 4px 0 0;
  color: #aeb3c4;
  line-height: 1.35;
}

.message time {
  color: #999ead;
  font-size: 12px;
}

.chat-delete {
  width: 24px;
  height: 24px;
  color: #9ca1af;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.chat-delete:hover {
  color: #e25c5c;
}

.public-chat-messages {
  min-height: 78px;
}

.chat-empty {
  margin: 0 26px;
  padding: 14px 0;
  color: #a4a8b5;
  border-top: 1px solid var(--panel-line);
}

.public-chat-form {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  margin: 14px 26px 0;
}

.public-chat-form input {
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  color: #e3e6ef;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.public-chat-form input:focus {
  border-color: #5487ca;
}

.public-chat-form input::placeholder {
  color: #aeb3c2;
}

.public-chat-form button {
  height: 40px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.public-chat-form button:hover {
  background: #6595d1;
}

#publicChatStatus {
  margin: 8px 26px 0;
}

.profile-view {
  padding-top: 2px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: start;
}

.profile-left,
.profile-main {
  display: grid;
  gap: 28px;
}

.profile-card {
  padding: 38px 36px 24px;
}

.profile-big-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: #757a7d;
  overflow: hidden;
}

.profile-big-avatar.default-silhouette {
  border-radius: 0;
  background: #737879;
}

.profile-big-avatar.default-silhouette::before {
  left: 39%;
  top: 19%;
  width: 22%;
  height: 29%;
  background: #d8d8d8;
}

.profile-big-avatar.default-silhouette::after {
  left: 23%;
  top: 52%;
  width: 54%;
  height: 35%;
  background: #d8d8d8;
}

.profile-wallet {
  margin-top: 28px;
}

.profile-wallet p {
  margin: 0;
  padding: 12px 0;
  color: #d7d9e3;
  border-bottom: 1px solid var(--panel-line);
}

.profile-wallet p:last-child {
  border-bottom: 0;
}

.profile-actions {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.profile-actions[hidden] {
  display: none;
}

.profile-actions button {
  min-height: 38px;
  padding: 0;
  color: #cbd0df;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.profile-actions button:hover:not(:disabled) {
  color: #7fb4f0;
}

.profile-actions button:disabled {
  color: #777d8d;
  cursor: default;
}

#profileActionStatus {
  margin-top: 10px;
}

.friends-card {
  min-height: 205px;
  padding-bottom: 22px;
}

.friends-card h3,
.profile-privileges h3 {
  padding: 30px 36px 22px;
}

.profile-friends-list {
  padding: 0 36px;
}

.profile-friend {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.profile-friend:hover span {
  color: #9ec6f3;
}

.profile-friend .group-badge {
  grid-column: 2;
  margin-top: -6px;
}

.profile-friend .avatar {
  width: 46px;
  height: 46px;
}

.profile-friend span {
  color: #6fa2df;
  font-size: 13px;
}

.profile-empty {
  margin: 0;
  color: #9398a8;
}

.profile-info {
  overflow: hidden;
}

.profile-info-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.profile-info-head h1 {
  margin: 0;
  color: #f0f1f6;
  font-size: 22px;
}

.profile-info-head span {
  color: #d8dae5;
}

.profile-section-title {
  padding: 14px 40px;
  color: #f0f1f6;
  background: #373b53;
  border-left: 1px solid #5383c1;
}

.profile-data-list {
  display: grid;
  grid-template-columns: 170px 1fr;
  row-gap: 20px;
  margin: 0;
  padding: 22px 40px 28px;
}

.profile-data-list dt {
  color: #c4c7d2;
}

.profile-data-list dd {
  margin: 0;
  color: #e2e4ed;
}

.profile-data-list dd#profileGroup {
  color: #fff;
  font-weight: 800;
}

.profile-privileges {
  margin-top: 36px;
}

.profile-table-wrap {
  overflow-x: auto;
}

.profile-privileges table {
  width: 100%;
  border-collapse: collapse;
}

.profile-privileges th,
.profile-privileges td {
  height: 46px;
  padding: 0 14px;
  color: #cfd2df;
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
  text-align: left;
  font-weight: 400;
}

.profile-privileges th:first-child,
.profile-privileges td:first-child {
  width: 54px;
  border-left: 0;
}

.profile-privileges td[colspan] {
  color: #b8bdca;
  text-align: center;
}

.news-view {
  padding-top: 2px;
}

.news-admin-panel {
  margin-bottom: 30px;
  padding: 24px 28px 28px;
}

.news-admin-panel h3 {
  margin: 0 0 18px;
  color: #f0f1f6;
  font-size: 18px;
}

.news-form {
  display: grid;
  gap: 12px;
}

.news-form input,
.news-form textarea {
  width: 100%;
  padding: 0 18px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.news-form input {
  height: 40px;
}

.news-form textarea {
  min-height: 150px;
  padding-top: 13px;
  resize: vertical;
}

.news-form input::placeholder,
.news-form textarea::placeholder {
  color: #bdc2d2;
}

.news-form input:focus,
.news-form textarea:focus {
  border-color: #5487ca;
}

.news-form button,
.news-delete {
  height: 38px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.news-form button {
  width: 120px;
}

.news-form button:hover {
  background: #6595d1;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.news-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  color: #d9dde8;
  text-align: left;
  background: #20232e;
  border: 0;
  cursor: default;
  font: inherit;
}

.news-card-open {
  display: grid;
  gap: 12px;
  padding: 0;
  color: #d9dde8;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.news-card-open:hover .news-card-title {
  color: #6fa7ee;
}

.news-delete {
  width: 82px;
  margin-top: 4px;
  color: #ffe5e5;
  background: #7d3038;
}

.news-delete:hover {
  background: #9a3a43;
}

.news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: #c8ccd8;
  background: #20232e;
}

.news-thumb {
  display: grid;
  place-items: center;
  min-height: 245px;
  color: #d9d9d9;
  background: #717574;
  font-size: 28px;
  font-weight: 800;
}

.news-card-title {
  color: #4d8fd7;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.news-card-excerpt {
  color: #d4d7e2;
  line-height: 1.45;
}

.news-card-meta {
  color: #c1c5d0;
  font-size: 14px;
}

.news-card-meta span,
.news-article-meta span {
  margin: 0 10px;
  color: #555b6c;
}

.news-article {
  padding: 28px 34px 34px;
  color: #d8dbe6;
  background: #20232e;
}

.news-back {
  margin: 0 0 22px;
  padding: 8px 14px;
  color: #dfe7f8;
  background: transparent;
  border: 1px solid #5487ca;
  cursor: pointer;
  font: inherit;
}

.news-back:hover {
  background: rgba(84, 135, 202, .16);
}

.news-article h2 {
  margin: 0 0 28px;
  color: #f2f4fb;
  font-size: 22px;
}

.news-article-body {
  line-height: 1.65;
}

.news-article-body p {
  margin: 0 0 22px;
}

.news-article-meta {
  margin-top: 26px;
  padding-top: 18px;
  color: #c3c7d3;
  border-top: 1px solid var(--panel-line);
}

.news-comments {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
}

.news-comments h3 {
  margin: 0 0 18px;
  color: #f0f1f6;
  font-size: 18px;
}

.news-comment {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--panel-line);
}

.news-comment:first-child {
  border-top: 0;
}

.news-comment strong {
  color: #f2f3f8;
}

.news-comment p,
.news-comments-empty {
  margin: 4px 0 0;
  color: #d4d7e2;
}

.news-comment time {
  color: #c1c5d0;
  font-size: 13px;
}

.news-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.news-comment-form textarea {
  min-height: 82px;
  padding: 12px 14px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  resize: vertical;
  font: inherit;
}

.news-comment-form textarea:focus {
  border-color: #5487ca;
}

.news-comment-form button {
  width: 100px;
  height: 36px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.events-view {
  padding-top: 2px;
}

.events-panel {
  padding: 30px 36px 26px;
}

.events-panel h3 {
  margin: 0 0 28px;
  color: #f0f1f6;
  font-size: 18px;
}

.event-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px 170px 118px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--panel-line);
}

.event-row p {
  margin: 0;
  color: #d7dae5;
  line-height: 1.25;
}

.event-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.event-user strong {
  min-width: 0;
  color: #f2f3f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.event-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.event-row time {
  color: #c3c7d3;
  font-size: 14px;
}

.event-row button {
  height: 28px;
  color: #6fa9ee;
  background: transparent;
  border: 2px solid #4d86c9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.event-row button:hover {
  color: #fff;
  background: rgba(77, 134, 201, .18);
}

.support-view {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 2px;
}

.support-create-panel {
  padding: 30px;
}

.support-create-panel button {
  width: 100%;
  height: 40px;
  color: #6fa9ee;
  background: transparent;
  border: 2px solid #4d86c9;
  cursor: pointer;
  font-weight: 800;
}

.support-create-panel button:hover {
  color: #fff;
  background: rgba(77, 134, 201, .18);
}

.tickets-panel,
.ticket-form-panel {
  padding: 30px 32px 34px;
}

.tickets-panel h3,
.ticket-form-panel h3 {
  margin: 0 0 28px;
  color: #f0f1f6;
  font-size: 18px;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  color: #d7dae5;
}

.tickets-table th,
.tickets-table td {
  height: 42px;
  padding: 0 12px;
  text-align: left;
  border: 1px solid var(--panel-line);
}

.tickets-table th {
  color: #dfe2eb;
  font-weight: 400;
}

.tickets-table td[colspan] {
  color: #c3c7d3;
  text-align: center;
}

.ticket-subject {
  display: block;
  padding: 0;
  color: #6fa9ee;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ticket-subject:hover {
  color: #9ec6f3;
}

.ticket-subject + small {
  display: block;
  margin-top: 2px;
  color: #8f96a8;
}

.ticket-form {
  display: grid;
  gap: 14px;
}

.ticket-form label {
  display: grid;
  gap: 8px;
}

.ticket-form label > span {
  color: #f0f1f6;
  font-size: 16px;
  font-weight: 800;
}

.ticket-form input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.ticket-editor {
  border: 2px solid #111822;
}

.ticket-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  color: #c6ced8;
  background: #213040;
  font-size: 18px;
}

.ticket-editor textarea {
  width: 100%;
  min-height: 248px;
  padding: 12px;
  color: #111;
  background: #fff;
  border: 0;
  outline: none;
  resize: vertical;
  font: inherit;
}

.ticket-editor-status {
  height: 18px;
  padding: 0 8px;
  color: #d7dde7;
  background: #213040;
  font-size: 12px;
}

.ticket-form > button {
  width: 82px;
  height: 40px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.ticket-form > button:hover {
  background: #6595d1;
}

.ticket-detail-panel {
  padding: 30px 32px 34px;
}

.ticket-back {
  margin: 0 0 20px;
  padding: 8px 14px;
  color: #dfe7f8;
  background: transparent;
  border: 1px solid #5487ca;
  cursor: pointer;
  font: inherit;
}

.ticket-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.ticket-detail-head h3 {
  margin: 0;
  color: #f0f1f6;
  font-size: 20px;
}

.ticket-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.ticket-detail-actions span {
  color: #6fa9ee;
}

.ticket-detail-actions button {
  height: 32px;
  padding: 0 14px;
  color: #ffe5e5;
  background: #7d3038;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.ticket-detail-actions button:hover {
  background: #9a3a43;
}

.ticket-author {
  margin: 0 0 22px;
  color: #c3c7d3;
}

.ticket-messages {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.ticket-message {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px;
  background: #2a2d3b;
  border: 1px solid var(--panel-line);
}

.ticket-message strong {
  color: #f2f3f8;
}

.ticket-message p {
  margin: 6px 0 8px;
  color: #d7dae5;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ticket-message time {
  color: #9ca2b4;
  font-size: 12px;
}

.ticket-reply-form {
  display: grid;
  gap: 10px;
}

.ticket-reply-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  resize: vertical;
  font: inherit;
}

.ticket-reply-form textarea:focus {
  border-color: #5487ca;
}

.ticket-reply-form button {
  width: 90px;
  height: 36px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.ticket-reply-form button:hover {
  background: #6595d1;
}

.ticket-closed-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #ffd5d5;
  background: rgba(125, 48, 56, .22);
  border: 1px solid rgba(125, 48, 56, .45);
}

.applications-view {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 2px;
}

.applications-side {
  display: grid;
  gap: 30px;
}

.application-create-panel,
.application-servers,
.applications-panel,
.application-instruction,
.application-search-panel,
.application-info-card,
.application-material-card,
.application-operations-card,
.application-comments-card {
  padding: 30px 32px 34px;
}

.application-create-panel button,
.application-primary-button,
.application-search-form button,
.application-create-form button {
  min-width: 100px;
  height: 40px;
  color: #fff;
  background: #5a8dcc;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.application-create-panel button {
  width: 100%;
  color: #6fa9ee;
  background: transparent;
  border: 2px solid #4d86c9;
}

.application-create-panel button:hover,
.application-primary-button:hover,
.application-search-form button:hover,
.application-create-form button:hover {
  background: rgba(77, 134, 201, .82);
}

.application-servers h3,
.applications-panel h3,
.application-instruction h3,
.application-search-panel h3,
.application-info-card h3,
.application-material-card h3,
.application-operations-card h3,
.application-comments-card h3 {
  margin: 0 0 28px;
  color: #f0f1f6;
  font-size: 18px;
}

.application-servers button {
  display: block;
  width: 100%;
  padding: 12px 0;
  overflow: hidden;
  color: #c8cbd7;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--panel-line);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.application-servers button.active {
  color: #eef1f8;
  border-left: 1px solid #5c92d6;
  padding-left: 10px;
}

.applications-table {
  width: 100%;
  border-collapse: collapse;
  color: #d7dae5;
}

.applications-table th,
.applications-table td {
  height: 42px;
  padding: 0 12px;
  text-align: left;
  border: 1px solid var(--panel-line);
  vertical-align: middle;
}

.applications-table th {
  color: #dfe2eb;
  font-weight: 400;
}

.applications-table td[colspan] {
  color: #c3c7d3;
  text-align: center;
}

.application-action,
.application-user {
  padding: 0;
  color: #6fa9ee;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.application-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.application-action:hover,
.application-user:hover {
  color: #9ec6f3;
}

.application-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}

.application-status-success {
  color: #20e69f;
}

.application-status-danger {
  color: #ff5656;
}

.application-status-pending {
  color: #ff9a35;
}

.application-form-area {
  grid-column: 1 / -1;
  display: grid;
  gap: 30px;
}

.application-instruction p {
  max-width: 980px;
  margin: 0;
  color: #cfd2df;
  line-height: 1.65;
}

.application-search-form,
.application-create-form {
  display: grid;
  gap: 14px;
}

.application-search-form label,
.application-create-form label {
  display: grid;
  gap: 8px;
}

.application-search-form span,
.application-create-form span {
  color: #f0f1f6;
  font-weight: 800;
}

.application-search-form input,
.application-search-form select,
.application-create-form input,
.application-create-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3a3f52;
  outline: none;
  font: inherit;
}

.application-create-form textarea {
  min-height: 170px;
  padding-top: 12px;
  resize: vertical;
}

.application-ban-result {
  margin-top: 24px;
}

.application-detail-area {
  grid-column: 1 / -1;
}

.application-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.application-info-card p,
.application-material-card p {
  margin: 0 0 14px;
  color: #cfd2df;
}

.application-info-card strong,
.application-material-card h4 {
  color: #f0f1f6;
}

.application-comment-box {
  min-height: 90px;
  margin: 8px 0 18px;
  padding: 18px 22px;
  color: #dfe2eb;
  background: #34374c;
  line-height: 1.55;
}

.application-operations-card {
  margin-top: 30px;
}

.application-comments-card {
  margin-top: 30px;
}

.application-comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--panel-line);
}

.application-comment header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.application-comment p {
  margin: 0;
  color: #d5d8e4;
  line-height: 1.55;
}

.application-comment time {
  color: #9aa0b1;
  font-size: 13px;
}

.stats-view {
  padding-top: 2px;
}

.stats-panel {
  padding: 0;
  color: #d7d7d7;
  background: #111;
  border-top: 1px solid #9b9b9b;
  border-bottom: 1px solid #9b9b9b;
  box-shadow: none;
  font-family: Arial, Tahoma, sans-serif;
}

.stats-panel h3 {
  margin: 0;
  padding: 14px 0 10px;
  color: #f3f3f3;
  font-size: 20px;
}

.stats-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #bdbdbd;
}

.stats-panel h3,
.stats-search-form,
.stats-pages,
.stats-table-wrap {
  padding-left: 0;
  padding-right: 0;
}

.stats-search-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stats-search-form span {
  color: #d7d7d7;
}

.stats-search-form input {
  width: 140px;
  height: 22px;
  padding: 0 6px;
  color: #111;
  background: #fff;
  border: 1px solid #a8a8a8;
  font: inherit;
}

.stats-search-form button {
  height: 24px;
  padding: 0 13px;
  color: #111;
  background: #e8e8e8;
  border: 1px solid #a8a8a8;
  cursor: pointer;
  font: inherit;
}

.stats-pages {
  display: flex;
  gap: 8px;
  min-height: 27px;
  align-items: center;
  border-bottom: 1px solid #9b9b9b;
}

.stats-pages:last-child {
  border-top: 1px solid #9b9b9b;
}

.stats-pages button {
  padding: 0;
  color: #dcdcdc;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.stats-pages button.active {
  color: #fff;
  font-weight: 800;
}

.stats-table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  color: #cfcfcf;
}

.stats-table th,
.stats-table td {
  padding: 6px 6px;
  text-align: left;
  white-space: nowrap;
  border: 0;
  font-weight: 400;
}

.stats-table th {
  color: #c8c8c8;
}

.stats-table td {
  color: #bfbfbf;
}

.stats-table td:first-child,
.stats-table th:first-child {
  text-align: center;
  width: 48px;
}

.stats-table td[colspan] {
  height: 58px;
  text-align: center;
}

.stats-nick {
  padding: 0;
  color: #d8d8d8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.stats-nick:hover {
  color: #fff;
}

.forgot-view {
  padding-top: 2px;
}

.forgot-panel {
  padding: 30px 34px 36px;
}

.forgot-panel h3 {
  margin: 0 0 28px;
  color: #f0f1f6;
  font-size: 18px;
}

.forgot-form {
  display: grid;
  gap: 22px;
  max-width: 785px;
}

.forgot-form input {
  width: 100%;
  height: 40px;
  padding: 0 18px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.forgot-form input::placeholder {
  color: #bdc2d2;
}

.forgot-form input:focus {
  border-color: #5487ca;
}

.forgot-form button {
  width: 182px;
  height: 40px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.forgot-form button:hover {
  background: #6595d1;
}

.forgot-mail-preview {
  max-width: 420px;
  margin-top: 18px;
  padding: 18px 20px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid var(--panel-line);
}

.forgot-mail-preview h4 {
  margin: 0 0 12px;
  color: #f0f1f6;
}

.forgot-mail-preview p {
  margin: 7px 0;
}

.messages-view {
  padding-top: 2px;
}

.rules-view {
  padding-top: 2px;
}

.rules-panel {
  padding: 24px 34px 36px;
  color: #d7d9e4;
  background: #202126;
  line-height: 1.65;
  font-size: 15px;
}

.rules-warning {
  margin: 0 0 28px;
  color: #ff4b31;
  text-align: center;
  font-weight: 800;
}

.rules-panel h3 {
  margin: 34px 0 22px;
  color: #00ff7a;
  font-size: 16px;
  font-weight: 800;
}

.rules-panel h3:first-of-type {
  margin-top: 0;
}

.rules-panel p {
  margin: 0 0 24px;
}

.rule-num {
  color: #f1f2f7;
}

.rule-blue {
  color: #00a8ff;
  font-weight: 800;
}

.rule-red {
  color: #ff4b31;
  font-weight: 800;
}

.rule-green {
  color: #00ff7a;
  font-weight: 800;
}

.rule-purple {
  color: #d27cff;
  font-weight: 800;
}

.rules-spoiler {
  margin: 10px 0 24px;
  background: #1f2026;
}

.rules-spoiler summary {
  padding: 10px 16px;
  color: #d7d9e4;
  background: #2a2b34;
  cursor: pointer;
}

.rules-spoiler div {
  padding: 12px 16px 18px;
  color: #d7d9e4;
  border-top: 1px solid #30323c;
}

.rules-note {
  margin: 28px 0 36px;
  padding: 18px 22px;
  background: #242631;
  border-radius: 8px;
}

.dialogs-panel {
  min-height: 132px;
  padding-bottom: 28px;
}

.dialogs-panel h3 {
  padding: 30px 36px 20px;
}

.dialogs-list {
  padding: 0 36px;
}

.dialogs-empty {
  margin: 0;
  color: #c5c8d4;
}

.dialog-row {
  display: grid;
  grid-template-columns: 42px 1fr auto 34px;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--panel-line);
  cursor: pointer;
}

.dialog-row:first-child {
  border-top: 0;
}

.dialog-row .avatar {
  width: 42px;
  height: 42px;
}

.dialog-row strong {
  display: block;
  color: #f0f1f6;
}

.dialog-avatar-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dialog-row p {
  margin: 4px 0 0;
  color: #aeb3c4;
}

.dialog-row time {
  color: #8f94a4;
  font-size: 12px;
}

.dialog-delete {
  width: 30px;
  height: 30px;
  color: #e25c5c;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.dialog-delete:hover {
  background: rgba(226, 92, 92, .12);
  border-color: rgba(226, 92, 92, .35);
}

.dialog-chat {
  padding: 0 0 12px;
}

.dialog-back {
  margin: 0 0 18px;
  padding: 8px 14px;
  color: #dfe7f8;
  background: transparent;
  border: 1px solid #5487ca;
  cursor: pointer;
  font: inherit;
}

.dialog-chat-head {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-line);
}

.dialog-chat-messages {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.dialog-chat-message {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px;
  background: #2a2d3b;
  border: 1px solid var(--panel-line);
}

.dialog-chat-message p {
  margin: 6px 0 8px;
  color: #d7dae5;
  line-height: 1.45;
  white-space: pre-wrap;
}

.dialog-chat-message time {
  color: #9ca2b4;
  font-size: 12px;
}

.dialog-reply-form {
  display: grid;
  gap: 10px;
}

.dialog-reply-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  resize: vertical;
  font: inherit;
}

.dialog-reply-form button {
  width: 100px;
  height: 36px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.friends-view {
  padding-top: 2px;
}

.friends-page-panel {
  min-height: 265px;
  padding-bottom: 34px;
}

.friends-page-panel h3 {
  padding: 30px 36px 24px;
}

.friend-search {
  display: grid;
  grid-template-columns: 22px 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 0 36px;
  height: 46px;
  background: #2e3244;
  border-left: 1px solid #5383c1;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.friend-search span {
  color: #6aa2e4;
  font-size: 19px;
}

.friend-search input {
  min-width: 0;
  height: 100%;
  color: #e1e4ef;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.friend-search input::placeholder {
  color: #b7bbc8;
}

.friend-search button {
  height: 30px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.friend-search button:hover {
  background: #6595d1;
}

#friendStatus {
  margin: 8px 36px 0;
}

.friends-page-list {
  padding: 26px 36px 0;
}

.friends-page-empty {
  margin: 0;
  color: #c5c8d4;
}

.friend-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--panel-line);
}

.friend-row:first-child {
  border-top: 0;
}

.friend-row .avatar {
  width: 68px;
  height: 68px;
}

.friend-row strong {
  color: #f2f3f8;
  font-size: 15px;
}

.friend-row span {
  margin-left: 4px;
  color: #c5c8d4;
  font-size: 12px;
}

.friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
}

.friend-actions button {
  padding: 0;
  color: #6fa2df;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.friend-actions button:hover {
  color: #9ec6f3;
}

.friend-actions .friend-remove {
  color: #e25c5c;
}

.users-view {
  padding-top: 2px;
}

.users-panel {
  min-height: 265px;
  padding-bottom: 28px;
}

.users-panel h3 {
  padding: 30px 36px 24px;
}

.users-filter {
  display: grid;
  grid-template-columns: 22px 1fr 130px;
  gap: 12px;
  align-items: center;
  height: 46px;
  padding: 0 36px;
  background: #2e3244;
  border-left: 1px solid #5383c1;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.users-filter span {
  color: #6aa2e4;
  font-size: 19px;
}

.users-filter input,
.users-filter select {
  min-width: 0;
  height: 100%;
  color: #e1e4ef;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.users-filter input::placeholder {
  color: #b7bbc8;
}

.users-filter select {
  padding: 0 10px;
  background: #2e3244;
  border-left: 1px solid var(--panel-line);
}

.users-list {
  padding: 26px 36px 0;
}

.users-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--panel-line);
}

.users-row:first-child {
  border-top: 0;
}

.users-avatar-button,
.users-name,
.users-actions button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.users-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.users-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.users-name {
  color: #f2f3f8;
  font-size: 15px;
  font-weight: 800;
}

.users-name:hover {
  color: #9ec6f3;
}

.users-row .group-badge {
  display: inline;
  margin-left: 4px;
  font-size: 12px;
}

.users-actions {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 9px;
}

.users-actions button {
  color: #6fa2df;
  font-size: 13px;
}

.users-actions button:hover:not(:disabled) {
  color: #9ec6f3;
}

.users-actions button:disabled {
  color: #8b91a2;
  cursor: default;
}

.privileges-view {
  padding-top: 2px;
}

.privileges-panel {
  padding: 28px 34px 34px;
}

.privileges-panel h3 {
  margin: 0 0 26px;
  color: #f0f1f6;
  font-size: 20px;
}

.privileges-table-wrap {
  overflow-x: auto;
  margin: 0 -34px -34px;
}

.privileges-panel table {
  width: 100%;
  border-collapse: collapse;
}

.privileges-panel th,
.privileges-panel td {
  min-height: 52px;
  padding: 12px 14px;
  color: #cfd2df;
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}

.privileges-panel th:first-child,
.privileges-panel td:first-child {
  width: 42px;
  border-left: 0;
}

.privileges-panel th:nth-child(2),
.privileges-panel td:nth-child(2) {
  min-width: 220px;
}

.privileges-panel th:nth-child(3),
.privileges-panel td:nth-child(3) {
  min-width: 160px;
}

.privileges-panel th:nth-child(4),
.privileges-panel td:nth-child(4) {
  min-width: 360px;
}

.privileges-panel td[colspan] {
  height: 64px;
  color: #b8bdca;
  text-align: center;
}

.privilege-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
}

.privilege-user strong {
  color: #f2f3f8;
  font-size: 14px;
}

.privilege-user:hover strong {
  color: #9ec6f3;
}

.privilege-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}

.privilege-avatar.default-silhouette {
  background: #6f747c;
}

.privilege-avatar.default-silhouette::before,
.privilege-avatar.default-silhouette::after {
  background: #d7d9dc;
}

.privilege-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.privilege-services {
  padding: 0;
  color: #5ca7ff;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.privilege-services:hover {
  color: #9ec6f3;
}

.violations-view {
  padding-top: 28px;
}

.violations-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.violations-side {
  display: grid;
  gap: 30px;
}

.violations-servers,
.violations-stats {
  padding: 30px 0 0;
}

.violations-servers h3,
.violations-stats h3,
.violations-panel h3 {
  margin: 0 30px 28px;
  color: #f0f1f6;
  font-size: 20px;
}

.violations-servers button {
  display: block;
  width: calc(100% - 60px);
  margin: 0 30px;
  padding: 12px 0;
  overflow: hidden;
  color: #c8cbd7;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--panel-line);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  cursor: pointer;
}

.violations-servers button.active {
  color: #eef1f8;
  border-left: 1px solid #5c92d6;
  padding-left: 10px;
}

.violations-stats dl {
  display: grid;
  grid-template-columns: 1fr 100px;
  margin: 0;
}

.violations-stats dt,
.violations-stats dd {
  min-height: 36px;
  margin: 0;
  padding: 10px 12px;
  color: #cfd2df;
  border-top: 1px solid var(--panel-line);
}

.violations-stats dt {
  padding-left: 22px;
}

.violations-stats dd {
  border-left: 1px solid var(--panel-line);
}

.violations-panel {
  padding: 30px 0 0;
}

.violations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.violations-head h3 {
  margin-bottom: 36px;
}

.violations-search {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 30px;
  background: #2d3041;
  border-top: 1px solid var(--panel-line);
}

.violations-search span {
  color: #5b9fe8;
  font-size: 18px;
}

.violations-search input {
  width: 100%;
  height: 40px;
  color: #dfe2eb;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.violations-table-wrap {
  overflow-x: auto;
  padding: 30px;
}

.violations-panel table {
  width: 100%;
  border-collapse: collapse;
}

.violations-panel th,
.violations-panel td {
  min-height: 48px;
  padding: 12px 12px;
  color: #d1d4df;
  border: 1px solid #34384a;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}

.violations-panel th {
  background: #222531;
}

.violations-panel tbody tr[data-violation-index] {
  cursor: pointer;
}

.violations-panel tbody tr[data-violation-index]:hover td {
  filter: brightness(1.12);
}

.violations-panel tbody td[colspan] {
  height: 64px;
  text-align: center;
  color: #b8bdca;
}

.violation-expired td {
  background: rgba(43, 86, 72, .42);
}

.violation-active td {
  background: rgba(92, 42, 54, .52);
}

.violation-expired td:nth-last-child(2),
.violation-expired td:nth-last-child(3) {
  color: #20e69f;
}

.violation-active td:nth-last-child(2),
.violation-active td:nth-last-child(3) {
  color: #ff5656;
}

.violation-admin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.violation-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}

.violation-avatar.default-silhouette {
  background: #6f747c;
}

.violation-details-card {
  width: min(760px, calc(100vw - 48px));
}

.violation-details-card th:first-child,
.violation-details-card td:first-child {
  width: 50%;
  text-align: left;
}

.violation-details-card th {
  font-weight: 800;
}

.violation-avatar.default-silhouette::before,
.violation-avatar.default-silhouette::after {
  background: #d7d9dc;
}

.violation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.settings-view {
  padding-top: 2px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 38px;
  align-items: start;
}

.settings-panel {
  padding: 30px 38px 34px;
}

.settings-profile-panel {
  grid-row: span 2;
}

.settings-panel h3 {
  margin: 0 0 28px;
  padding: 0;
  color: #f0f1f6;
  font-size: 18px;
}

.settings-form {
  display: grid;
  gap: 17px;
}

.settings-form label,
.settings-inline-form {
  display: grid;
  gap: 8px;
}

.settings-form label > span {
  color: #f0f1f6;
  font-weight: 800;
}

.settings-form label small {
  color: #8e94a4;
  font-weight: 400;
}

.settings-inline-form,
.settings-birthday {
  display: grid;
  grid-template-columns: 92px 1fr;
}

.settings-birthday {
  grid-template-columns: 92px 1fr 1.35fr 1fr;
}

.settings-inline-form button,
.settings-birthday button,
.settings-form > button,
.avatar-settings-form button {
  height: 40px;
  color: #68a7ee;
  background: transparent;
  border: 2px solid #4e85c9;
  cursor: pointer;
  font-weight: 800;
}

.settings-inline-form button:hover,
.settings-birthday button:hover,
.settings-form > button:hover,
.avatar-settings-form button:hover {
  color: #fff;
  background: rgba(78, 133, 201, .18);
}

.settings-inline-form input,
.settings-form input,
.settings-birthday select {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  color: #e3e6ef;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.settings-inline-form input:focus,
.settings-form input:focus,
.settings-birthday select:focus {
  border-color: #5487ca;
}

.settings-inline-form input::placeholder,
.settings-form input::placeholder {
  color: #aeb3c2;
}

.settings-birthday select {
  padding: 0 10px;
}

.avatar-settings-form {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}

.settings-avatar-preview {
  width: 96px;
  height: 96px;
  background: #737879;
  overflow: hidden;
}

.settings-avatar-preview.default-silhouette {
  border-radius: 0;
  background: #737879;
}

.settings-avatar-preview.default-silhouette::before {
  left: 39%;
  top: 20%;
  width: 22%;
  height: 29%;
  background: #d8d8d8;
}

.settings-avatar-preview.default-silhouette::after {
  left: 22%;
  top: 53%;
  width: 56%;
  height: 34%;
  background: #d8d8d8;
}

.avatar-settings-form input[type="file"] {
  width: 100%;
  margin-bottom: 12px;
  color: #c9ccd8;
  background: #2b2e3b;
  border: 1px solid #3b4053;
}

.services-view {
  padding-top: 2px;
}

.services-panel {
  padding: 30px 36px 36px;
}

.services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.services-head h3 {
  margin: 0;
  padding: 0;
  color: #f0f1f6;
  font-size: 18px;
}

.services-head button {
  height: 30px;
  padding: 0 14px;
  color: #68a7ee;
  background: transparent;
  border: 2px solid #4e85c9;
  cursor: pointer;
  font-weight: 800;
}

.services-head button:hover {
  color: #fff;
  background: rgba(78, 133, 201, .18);
}

.service-notifications-list {
  display: grid;
  gap: 12px;
}

.service-empty {
  margin: 0;
  color: #c5c8d4;
}

.service-note {
  position: relative;
  padding: 24px 42px 22px 38px;
  color: #fff;
  line-height: 1.42;
}

.service-note-success {
  background: #4cc08c;
}

.service-note-danger {
  background: #db5252;
}

.service-note p {
  margin: 0 0 3px;
}

.service-note time {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .88);
}

.service-note-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 24px;
  height: 24px;
  color: rgba(0, 0, 0, .42);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.service-note-close:hover {
  color: rgba(0, 0, 0, .72);
}

.service-note-action {
  height: 34px;
  margin: 12px 0 8px;
  padding: 0 16px;
  color: #fff;
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(0, 0, 0, .22);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.service-note-action:hover {
  background: rgba(0, 0, 0, .24);
}

.shop-view {
  padding-top: 2px;
}

.shop-panel {
  padding: 30px 34px 36px;
}

.shop-panel h3 {
  margin: 0 0 30px;
  padding: 0;
  color: #f0f1f6;
  font-size: 18px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.shop-form {
  display: grid;
  gap: 14px;
}

.shop-form label {
  display: grid;
  gap: 8px;
}

.shop-form label span,
.shop-terms strong,
.shop-info h4 {
  color: #f0f1f6;
  font-size: 16px;
  font-weight: 800;
}

.shop-form select,
.shop-form input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 18px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
  font: inherit;
}

.shop-form select:focus,
.shop-form input[type="text"]:focus {
  border-color: #5487ca;
}

.shop-form input[type="text"]::placeholder {
  color: #bdc2d2;
}

.binding-fields {
  display: grid;
  gap: 10px;
}

.binding-fields[hidden] {
  display: none;
}

.shop-terms {
  display: grid;
  gap: 9px;
  margin-top: 3px;
}

.shop-terms label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cdd1df;
}

.shop-terms input {
  width: 14px;
  height: 14px;
}

.shop-form > button {
  width: 74px;
  height: 40px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.shop-form > button:hover {
  background: #6595d1;
}

.shop-form > button:disabled {
  color: #aeb4c5;
  background: #3f4556;
  cursor: default;
}

.shop-form > button:disabled:hover {
  background: #3f4556;
}

.combine-status {
  display: grid;
  gap: 8px;
  color: #dfe2eb;
}

.combine-actions {
  display: flex;
  gap: 8px;
}

.combine-actions button {
  min-width: 54px;
  height: 32px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.combine-actions button:last-child {
  background: #4a5062;
}

.combine-status small {
  color: #aeb4c5;
}

.shop-info h4 {
  margin: 0 0 12px;
}

#shopInfoText {
  min-height: 440px;
  padding: 24px 32px;
  color: #d9dce8;
  background: #363a52;
  line-height: 1.45;
}

#shopInfoText p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal:target {
  display: grid;
}

.modal.modal-closed {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 18, .72);
}

.modal-card {
  position: relative;
  width: 300px;
  max-width: min(100%, 300px);
  background: #232631;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
}

.auth-card {
  padding: 28px 32px 29px;
}

.login-card {
  width: 302px;
}

.register-card {
  width: 292px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  color: #b6bac7;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.details-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  padding: 54px 24px;
}

.details-modal[hidden] {
  display: none;
}

.details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .78);
  border: 0;
  cursor: default;
}

.details-card {
  position: relative;
  width: min(798px, calc(100vw - 48px));
  padding: 35px 34px 35px;
  color: #d9dce8;
  background: #232631;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
}

.details-card h3 {
  margin: 0 0 24px;
  color: #f0f1f6;
  font-size: 18px;
}

.details-close {
  position: absolute;
  right: 18px;
  top: 14px;
  color: #aeb3c1;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.details-close:hover {
  color: #fff;
}

.details-table-wrap {
  overflow-x: auto;
}

.details-card table {
  width: 100%;
  border-collapse: collapse;
}

.details-card th,
.details-card td {
  height: 36px;
  padding: 0 12px;
  color: #d3d6e3;
  border: 1px solid #3a3e52;
  text-align: left;
  font-weight: 400;
}

.details-card th:first-child,
.details-card td:first-child {
  width: 34px;
  text-align: center;
}

.details-remaining {
  color: #20e69f;
}

.violation-detail-active {
  color: #ff5656;
}

.auth-card h2 {
  margin: 0 0 23px;
  color: #eef0f7;
  font-size: 20px;
}

.auth-card form {
  display: grid;
  gap: 10px;
}

.auth-card input {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  color: #dfe2eb;
  background: #2b2e3b;
  border: 1px solid #3b4053;
  outline: none;
}

.auth-card input::placeholder {
  color: #b9bdca;
}

.auth-card input:focus {
  border-color: #5487ca;
}

.auth-card button {
  width: 100%;
  height: 40px;
  color: #fff;
  background: #5585c2;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.register-card button {
  margin-top: 18px;
}

.auth-card button:hover {
  background: #6595d1;
}

.auth-links {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}

.auth-links a {
  color: #b9c7e5;
  border-bottom: 1px solid #6791c9;
  font-size: 13px;
}

.form-status {
  min-height: 18px;
  color: #ff8080;
  font-size: 12px;
  line-height: 1.35;
}

.form-status.success {
  color: #70e282;
}

@media (max-width: 1050px) {
  .brand-row,
  .content-grid,
  .profile-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .servers {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .left-side {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-left {
    grid-template-columns: 300px 1fr;
  }

  .settings-profile-panel {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
  }

  .topbar-inner,
  .main-nav,
  .brand-row,
  .content-grid,
  .left-side,
  .profile-layout,
  .profile-left,
  .settings-grid {
    display: block;
  }

  .main-nav a {
    height: 42px;
  }

  .auth-entry {
    justify-content: flex-start;
    padding: 10px 0;
  }

  .server-box {
    width: 100%;
    margin-bottom: 12px;
  }

  .panel,
  .promo,
  .profile-card,
  .friends-card,
  .profile-info {
    margin-bottom: 18px;
  }

  .settings-panel {
    margin-bottom: 18px;
    padding: 24px 22px;
  }

  .settings-inline-form,
  .settings-birthday,
  .avatar-settings-form,
  .users-filter,
  .users-row {
    grid-template-columns: 1fr;
  }

  .users-filter {
    height: auto;
    padding: 12px 22px;
  }

  .users-filter select {
    height: 38px;
    border-left: 0;
    border-top: 1px solid var(--panel-line);
  }

  .users-list,
  .users-panel h3,
  .events-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .event-row,
  .news-comment,
  .support-view,
  .ticket-message {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-panel {
    padding: 24px 18px;
  }

  .services-head {
    display: block;
  }

  .services-head button {
    margin-top: 14px;
  }

  .service-note {
    padding: 20px 36px 20px 22px;
  }

  .shop-panel {
    padding: 24px 18px;
  }

  #shopInfoText {
    min-height: 0;
    padding: 20px;
  }

  .profile-info-head,
  .profile-section-title,
  .profile-data-list {
    padding-left: 22px;
    padding-right: 22px;
  }

  .profile-data-list {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
}

@media (max-width: 540px) {
  .site-logo strong {
    font-size: 25px;
  }

  .promo {
    min-height: 500px;
  }

  .promo-text {
    padding: 34px 22px 0;
  }

  .gift {
    transform: scale(.82) rotate(-13deg);
  }

  .gift-1 { left: 150px; top: 120px; }
  .gift-2 { left: 32px; top: 210px; }
  .gift-3 { left: 155px; top: 278px; }
  .gift-4 { right: 24px; top: 170px; }
  .gift-5 { right: 34px; top: 310px; }
  .gift-6 { right: 155px; bottom: 36px; }
}
