.account-tools {
  position: relative;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.account-menu {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
}

.account-menu__trigger {
  display: grid;
  place-items: center;
  width: 22px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.account-menu__trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.account-menu__trigger:hover,
.account-menu.is-open .account-menu__trigger {
  color: #00e8f4;
}

.account-popover {
  position: absolute;
  top: 49px;
  right: -15px;
  z-index: 100;
  width: 208px;
  padding: 1px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5px);
  border: 1px solid #262832;
  background: #202023;
  box-shadow: 0 14px 34px rgb(0 0 0 / 55%);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.account-popover--profile {
  right: -17px;
  width: 260px;
}

.account-menu:hover .account-popover,
.account-menu:focus-within .account-popover,
.account-menu.is-open .account-popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.account-popover__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  color: #f5f5f7;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
}

.account-popover__item:hover,
.account-popover__item.is-current {
  background: #08b9c9;
  color: #fff;
}

.account-popover__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ececff;
  font-size: 20px;
  line-height: 1;
}

.account-popover__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-profile {
  min-height: 104px;
  padding: 12px 22px 10px;
}

.account-profile__main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
}

.account-profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #4a4d5e;
  border-radius: 50%;
  background: linear-gradient(145deg, #090b13 45%, #8c95ae 46%, #35394d 70%);
  color: #6eeffc;
  font-size: 14px;
}

.account-profile__avatar::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 22px;
  height: 10px;
  border: 2px solid #657aff;
  border-radius: 2px 2px 7px 7px;
}

.account-profile__name {
  margin: 0 0 2px;
  color: #9295a6;
  font-size: 14px;
}

.account-profile__uid {
  color: #718bd9;
  font-size: 14px;
}

.account-profile__credit {
  height: 24px;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid #43465c;
  border-radius: 5px;
  color: #8b8fa3;
  font-size: 13px;
  text-align: center;
}

.account-profile__credit strong {
  color: #00f0ff;
  font-weight: 400;
}

.account-profile__divider {
  height: 1px;
  margin-top: 9px;
  background: #343641;
}

.account-popover__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.account-popover__status {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 5px;
  background: #6d6b80;
  color: #c8c7d2;
  font-size: 12px;
}

.account-menu-host--fallback {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-right: 20px;
}

.account-header-divider {
  width: 1px;
  height: 22px;
  flex: 0 0 1px;
  margin: 0 26px 0 25px;
  background: #343647;
}

.account-icon-strip {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  height: 50px;
  margin-left: auto;
  gap: 0 !important;
  color: #fff;
}

.account-icon-strip > .account-tools,
.account-icon-strip > .account-menu-host--fallback {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.account-icon-strip .account-tools {
  gap: 15px !important;
}

.account-icon-strip .account-menu__trigger {
  width: 20px;
}

.account-icon-strip > .div-tab.mr20,
.account-icon-strip > .div-tab.mr30 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 50px;
}

.account-icon-strip > .div-tab.mr20 {
  margin: 0 15px 0 0 !important;
}

.account-icon-strip > .div-tab.mr30 {
  margin: 0 !important;
}

.account-icon-strip > .line,
.account-icon-strip > .trade-site-actions__divider {
  flex: 0 0 1px;
  width: 1px;
  height: 22px;
  margin: 0 26px 0 25px !important;
  background: #343647;
}

.account-header-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 34px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.account-header-icon--language {
  margin-right: 0;
}

.account-icon-strip > .svg-container.icon-svg {
  display: grid !important;
  place-items: center;
  flex: 0 0 20px;
  width: 20px !important;
  height: 34px;
  margin: 0 8px 0 0 !important;
}

.account-icon-strip > .svg-container.icon-svg[title="Language"] {
  margin-right: 0 !important;
}

.account-header-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-header-icon:hover {
  color: #00e8f4;
}

.trade-site-actions .account-header-icon {
  flex: 0 0 20px;
}

.trade-site-actions .account-menu-host--fallback {
  flex: 0 0 auto;
  margin-left: 0;
  padding-right: 0;
}

.trade-site-actions .account-popover__item {
  display: grid;
  justify-content: initial;
  min-width: 0;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  color: #f5f5f7;
  font-size: 16px;
  line-height: 1.1;
  white-space: normal;
}

@media (max-width: 760px) {
  .account-tools {
    gap: 9px;
  }

  .account-menu {
    height: 42px;
  }

  .account-popover {
    position: fixed;
    top: 56px;
    right: 12px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .account-popover--profile {
    right: 12px;
  }
}
