/* Current profile layout, scoped so Home and the authentication popups keep their own styles. */
body[data-view="profile"] .profile_header {
  position: relative !important;
  z-index: 1 !important;
  height: 300px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, .3) !important;
}

body[data-view="profile"] .profile_header_bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(135deg, rgba(8, 44, 76, .6), rgba(3, 169, 244, .3) 70%, rgba(51, 51, 51, .2)), url('/static/assets/img/profile-header-v3.jpg') no-repeat 50% !important;
  background-size: cover !important;
  overflow: hidden;
}

body[data-view="profile"] .profile_header .profile_container {
  position: relative !important;
  display: grid !important;
  justify-content: center !important;
  align-items: normal !important;
  height: 100% !important;
  gap: 0 !important;
  padding: 0 !important;
  z-index: 3 !important;
}

body[data-view="profile"] .profile_header .avatar {
  position: absolute !important;
  top: auto !important;
  right: 42% !important;
  bottom: -30% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
  align-items: center !important;
  width: 200px;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-view="profile"] .profile_header .avatar_img {
  position: relative !important;
  width: 200px !important;
  height: 200px !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 0 20px 10px rgba(3, 169, 244, .1) !important;
  transition: .5s !important;
}

body[data-view="profile"] .avatar_img label {
  display: block;
  height: 100%;
  cursor: pointer;
}

body[data-view="profile"] .profile_header .avatar_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

body[data-view="profile"] .profile_header .avatar_img .fade_link {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 101% !important;
  height: 101% !important;
  border-radius: 0 !important;
  font-size: 48px !important;
  background: rgba(0, 0, 0, .8) !important;
  color: rgba(255, 255, 255, .8) !important;
  opacity: 0 !important;
  transition: .5s !important;
}

body[data-view="profile"] .profile_header .avatar_img label:hover .fade_link,
body[data-view="profile"] .profile_header .avatar_img label:focus-visible .fade_link {
  opacity: 1 !important;
}

body[data-view="profile"] .profile_header .avatar_name {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 16px !important;
  text-align: center !important;
}

body[data-view="profile"] .avatar_name span {
  font-size: 24px;
  line-height: 36px;
  font-weight: 300;
  color: #fff;
}

body[data-view="profile"] .profile {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 150px 0 60px !important;
  margin: 0 !important;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 16px;
  background: linear-gradient(#000 0%, #030f1a 50%, #06223a 100%) !important;
}

body[data-view="profile"] .small_info {
  display: grid !important;
  grid-template-columns: 1fr 10px 1fr 1fr !important;
  place-items: center !important;
  gap: 0 !important;
}

body[data-view="profile"] .small_info .btn {
  width: 245px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #0095b9 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 16px !important;
  transition: .5s !important;
}

body[data-view="profile"] .small_info .btn:hover {
  transform: none !important;
  filter: brightness(1.25);
  box-shadow: 0 0 40px 10px rgba(255, 255, 255, .1) !important;
}

body[data-view="profile"] .small_sep {
  width: 1px !important;
  height: 60px !important;
  margin: 0 !important;
  background: rgba(0, 149, 185, .5);
  animation: h 2s infinite;
}

body[data-view="profile"] .small_email .mail {
  color: #fff;
  font-size: 18px;
  font-weight: 100;
  line-height: 27px;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

body[data-view="profile"] .small_email .change_email {
  color: rgba(255, 255, 255, .5);
  margin: 0 10px;
  transition: .5s;
}

body[data-view="profile"] .small_email a:hover { color: #0095b9; }

body[data-view="profile"] .small_email_subscription {
  display: block;
  font-size: 16px;
  font-weight: 100;
  line-height: 16px;
  color: #fff;
  cursor: pointer;
}

body[data-view="profile"] .small_email_subscription input {
  appearance: auto;
  width: 13px;
  height: 13px;
  margin: 3px 3px 3px 4px;
  padding: 0;
  accent-color: #1677ff;
  vertical-align: baseline;
}

body[data-view="profile"] .change_links {
  text-align: center;
  line-height: 21px;
}

body[data-view="profile"] .change_link a {
  color: #0095b9;
  text-decoration: none;
  transition: .5s;
}

body[data-view="profile"] .change_link a:hover { color: #fff; }

body[data-view="profile"] .small_email_active,
body[data-view="profile"] .change_link_active {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 320px;
}

body[data-view="profile"] .small_info [hidden] { display: none !important; }

body[data-view="profile"] .small_email_active:not([hidden]),
body[data-view="profile"] .change_link_active:not([hidden]) { display: flex !important; }

body[data-view="profile"] .small_info form input:not([type="submit"]) {
  width: 200px;
  max-width: 100%;
  border: 1px solid rgba(3, 169, 244, .2);
  border-radius: 5px;
  padding: 15px 0;
  background: #051a2d;
  color: #fff;
  text-indent: 20px;
}

body[data-view="profile"] .small_info form input[type="submit"] {
  border: 0;
  border-radius: 5px;
  padding: 12px;
  color: #fff;
  background: rgba(3, 169, 244, .5);
  font-weight: 900;
  cursor: pointer;
}

body[data-view="profile"] .profile #chat {
  margin: 60px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-view="profile"] .profile #chat .chat-tabs {
  display: flex !important;
  align-items: center !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  gap: 0 !important;
  border-bottom: 1px solid rgba(0, 149, 185, .6) !important;
}

body[data-view="profile"] .profile #chat .chat-tab {
  display: block !important;
  padding: 10px !important;
  margin: 0 !important;
  border: 1px solid rgba(0, 149, 185, .2) !important;
  border-bottom: 0 !important;
  border-radius: 4px 4px 0 0 !important;
  background: rgba(0, 149, 185, .8) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  text-transform: none !important;
  transition: background .5s !important;
}

body[data-view="profile"] .profile #chat .chat-items {
  display: grid !important;
  height: 150px !important;
  min-height: 0 !important;
  padding: 10px 20px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #00131c !important;
  overflow-y: auto !important;
}

body[data-view="profile"] .profile #chat .chat_rules {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 100 !important;
  line-height: 12px !important;
  color: #0095b9 !important;
}

body[data-view="profile"] .profile #chat .chat_rules a { color: #0095b9; }

body[data-view="profile"] .profile #chat .chat_input {
  display: flex !important;
  justify-content: center !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

body[data-view="profile"] .profile #chat .chat_input input {
  width: 100% !important;
  height: 40px !important;
  padding: 1px 2px !important;
  margin: 0 !important;
  border: 1px solid rgba(3, 169, 244, .12) !important;
  border-radius: 5px !important;
  background: #051a2d !important;
  color: #fff !important;
  font-size: 13.3333px !important;
  font-weight: 400 !important;
  text-indent: 20px;
  opacity: 1;
}

body[data-view="profile"] .profile #chat .chat_input input::placeholder { color: rgba(3, 169, 244, .2); }

body[data-view="profile"] .cheats_prod {
  padding: 0 0 80px !important;
  margin: 0 !important;
  background: linear-gradient(#06223a, #030f1a 61%, #000) !important;
  scroll-margin-top: 100px;
}

body[data-view="profile"] .prod_items { padding: 10px 0 !important; }

body[data-view="profile"] .prod_item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 200px !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(217, 111, 34, .56), rgba(244, 105, 3, .15) 40%, #794a0dc7), url('/static/assets/img/profile-cs2-v3.jpg') no-repeat 50% !important;
  background-size: cover !important;
  transition: .5s !important;
}

body[data-view="profile"] .prod_item.unactive { filter: grayscale(100%); }
body[data-view="profile"] .prod_item:hover { filter: grayscale(0%) brightness(120%); }

body[data-view="profile"] .prod_name {
  margin: 0 0 0 60px !important;
  font-size: 38px !important;
  font-weight: 900 !important;
  line-height: 57px !important;
}

body[data-view="profile"] .prod_status {
  margin: 0 60px 0 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 27px !important;
}

body[data-view="profile"] .prod_status span {
  font-size: 24px;
  font-weight: 900;
  line-height: 36px;
}

body[data-view="profile"] .profile-subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #0095b9;
}

body[data-view="profile"] .profile_header i,
body[data-view="profile"] .profile .small_info i {
  font-family: 'Dearsense Account Icons';
  font-weight: 900;
}

body[data-view="profile"] .soc_fixed {
  position: fixed !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  left: 20px !important;
  bottom: 35% !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body[data-view="profile"] .soc_fixed p {
  width: auto !important;
  margin: 0 !important;
  color: #d3d3d3 !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transform: rotate(90deg) !important;
  transform-origin: center top !important;
}

body[data-view="profile"] .soc_fixed .items {
  margin-left: 5px !important;
  gap: 0 !important;
}

body[data-view="profile"] .soc_fixed .item { padding: 10px 0 !important; font-size: 21px !important; }
body[data-view="profile"] .soc_fixed .item:nth-child(2) { order: 3; }
body[data-view="profile"] .soc_fixed .item:nth-child(3) { order: 2; }
body[data-view="profile"] .soc_fixed .item:nth-child(4) { order: 4; }
body[data-view="profile"] .soc_fixed .item:nth-child(5) { order: 5; }
body[data-view="profile"] .soc_fixed .item a { color: #fff !important; font-size: 21px !important; transition: .5s !important; }
body[data-view="profile"] .soc_fixed .item i { font-family: 'Dearsense Account Brands' !important; font-weight: 400; }
body[data-view="profile"] .soc_fixed .item a:hover { color: #0095b9 !important; transform: none !important; filter: none !important; }

@media (max-width: 1170px) {
  body[data-view="profile"] .profile_header .avatar { right: calc(50% - 100px) !important; }
}

@media (orientation: landscape) and (max-height: 460px),
       (min-width: 320px) and (max-width: 780px) and (orientation: portrait) {
  body[data-view="profile"] .container { width: 100% !important; max-width: 100% !important; padding: 0 5px !important; }
  body[data-view="profile"] .profile_header .profile_container { grid-template-rows: auto 50px !important; }
  body[data-view="profile"] .profile_header .avatar {
    position: static !important;
    width: 100px;
    justify-self: center;
    align-self: end;
  }
  body[data-view="profile"] .profile_header .avatar_img { width: 100px !important; height: 100px !important; }
  body[data-view="profile"] .avatar_name span { white-space: nowrap; }
  body[data-view="profile"] .profile { padding: 50px 0 30px !important; }
  body[data-view="profile"] .small_info { grid-template-columns: 1fr !important; gap: 20px !important; }
  body[data-view="profile"] .small_sep { display: none; }
  body[data-view="profile"] .profile-email-block { text-align: center; }
  body[data-view="profile"] .small_email_active,
  body[data-view="profile"] .change_link_active { justify-content: center; }
  body[data-view="profile"] .profile #chat { margin-top: 30px !important; }
  body[data-view="profile"] .prod_item { flex-direction: column; justify-content: space-evenly !important; }
  body[data-view="profile"] .prod_name { margin: 0 !important; font-size: 26px !important; line-height: 39px !important; text-align: center; }
  body[data-view="profile"] .prod_status { margin: 0 !important; text-align: center; }
  body[data-view="profile"] .soc_fixed { display: none !important; }
  body[data-view="profile"] footer .footer_links { grid-template-columns: 1fr !important; gap: 24px !important; }
  body[data-view="profile"] footer .useful_links { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 20px !important; }
  body[data-view="profile"] footer .footer_links .separator { display: none !important; }
  body[data-view="profile"] footer a { font-size: 14px !important; line-height: 21px !important; }
}

.profile-downloads { display:flex;flex-direction:column;gap:8px; }
.profile-sync-download { font-size:12px !important; }
.profile-branch { margin-top:5px;font-size:13px;line-height:20px;color:#9a936e; }
.profile-branch span { color:#82909c;margin-right:8px; }
#community-chat-status { color:#82909c;font-size:12px;margin:8px 0; }
.community-chat-row { display:flex;gap:12px;padding:8px 0;overflow-wrap:anywhere; }
.community-chat-row strong { color:#aa72b5;min-width:90px; }
.community-chat-row span { white-space:pre-wrap; }
@media (prefers-reduced-motion: reduce) {
body[data-view="profile"] .small_sep,
body[data-view="profile"] .profile_header .avatar_img{
    animation: none !important;
    transition: none !important;
  }
}
