.user-profile {
  position: relative;
  z-index: 2;
  transform: translateX(-0.6vw);
}

button.user-profile-btn {
  padding: 0.5vw 0.5vw 0.5vw 0.8vw;
  background: transparent;
  transform: translateX(1vw);
}

button.user-profile-btn:hover {
  color: var(--red);
}

button.user-profile-btn svg {
  width: 1.2vw;
  margin-left: 0.3vw;
  position: relative;
  transition: all 0.25s ease-in-out;
}

button.user-profile-btn svg ellipse,
button.user-profile-btn svg circle {
  transition: all 0.25s ease-in-out;
}

button.user-profile-btn:hover svg ellipse,
button.user-profile-btn:hover svg circle {
  stroke: var(--red) !important;
}

button.user-profile-btn > i {
  font-size: 0.85vw;
  position: absolute;
  left: -0.5vw;
  transition: all 0.25s ease-in-out;
}

button.user-profile-btn:hover > i {
  color: var(--red);
}

button.user-profile-btn.active > i {
  transform: rotate(180deg);
}

button.user-profile-btn > span {
  font-size: 0.88vw;
  font-weight: 600;
}

button.user-profile-btn > span i {
  margin: 0 0.5vw;
  font-size: 1vw;
}

button.user-profile-btn figure {
  width: 1.9vw;
  height: 1.9vw;
  border-radius: 100%;
  overflow: hidden;
  position: relative;
  margin-right: 0.5vw;
  box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.5);
}

button.user-profile-btn figure img {
  width: 100%;
  height: 100%;
}

body.dark button.user-profile-btn > i,
body.dark button.user-profile-btn > span {
  color: #a89c86 !important;
}

body.light button.user-profile-btn i {
  --fa-secondary-opacity: 0.3;
}

ul.user-profile-sub-menu {
  width: 17vw;
  background-color: var(--light-bg);
  position: absolute;
  top: 150%;
  right: -2vw;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 0.3vw 0.5vw rgba(0, 0, 0, 0.2);
  overflow: hidden;
  height: 0;
  justify-content: start;
  border-radius: 0.85vw;
}

ul.user-profile-sub-menu.active {
  padding: 0.4vw;
  opacity: 1;
  visibility: visible;
  height: 21vw;
}

body.light ul.user-profile-sub-menu {
  background-color: rgba(27, 27, 27, 0.98);
  box-shadow: 0 0.1vw 0.9vw rgba(0, 0, 0, 0.15);
}

ul.user-profile-sub-menu li {
  width: 95%;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.9vw;
}

ul.user-profile-sub-menu li:nth-child(1) {
  height: 4.5vw;
  position: relative;
  margin-bottom: 0.5vw;
}

ul.user-profile-sub-menu li:nth-child(1)::before {
  content: "";
  width: 100%;
  height: 0.12vw;
  background: linear-gradient(
    to left,
    transparent,
    var(--light-green),
    transparent
  );
  position: absolute;
  bottom: 0;
  left: 0;
}

ul.user-profile-sub-menu li:nth-child(1) a {
  padding: 1vw;
  width: 100%;
  height: 100%;
  justify-content: start !important;
  transition: all 0.25s ease-in-out;
  position: relative;
}

ul.user-profile-sub-menu li:nth-child(1) a > div {
  width: 100%;
  justify-content: space-between !important;
  position: relative;
}

ul.user-profile-sub-menu li:nth-child(1) a > div h4 {
  width: 80%;
  gap: 0.4vw;
  font-size: 0.9vw;
  font-weight: 600;
  justify-content: start !important;
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:nth-child(1) a:hover > div h4 {
  color: var(--red);
}

ul.user-profile-sub-menu li:nth-child(1) a > div h4 i {
  margin: 0 1vw;
  font-size: 1vw;
}

ul.user-profile-sub-menu li:nth-child(1) a > div h4 svg {
  width: 1.6vw;
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:nth-child(1) a:hover > div h4 svg path {
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:nth-child(1) a:hover > div h4 svg path {
  stroke: var(--red);
}

ul.user-profile-sub-menu li:nth-child(1) a > div i {
  position: relative;
  font-size: 1.1vw;
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:nth-child(1) a:hover > div i {
  color: var(--red);
}

ul.user-profile-sub-menu li:nth-child(1) a > div:last-child {
  width: 100%;
  margin-top: 1vw;
  color: rgba(113, 128, 150, 0.8);
  justify-content: space-between !important;
  position: relative;
}

ul.user-profile-sub-menu li:nth-child(1) a > div:last-child h5 {
  font-weight: 500;
  font-size: 0.9vw;
  color: rgba(113, 128, 150, 0.8);
}

ul.user-profile-sub-menu li:nth-child(1) a > div:last-child h6 {
  font-weight: 600;
  font-size: 0.95vw;
  color: rgba(0, 0, 0, 1);
  gap: 0.2vw;
}

ul.user-profile-sub-menu li:nth-child(1) a > div:last-child h6 svg {
  width: 1.1vw;
  fill: rgba(113, 128, 150, 0.8);
}

ul.user-profile-sub-menu li:not(li:first-child) {
  cursor: pointer;
  padding: 0.75vw 0;
  font-weight: normal;
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:not(li:first-child) {
  padding: 0.5vw 0.7vw;
  height: 4vw;
  justify-content: start !important;
  gap: 0.75vw;
  border-radius: 0.5vw;
  font-weight: 500;
  transition: all 0.25s ease-in-out !important;
}

ul.user-profile-sub-menu li:not(li:first-child):hover {
  color: var(--red);
}

ul.user-profile-sub-menu li:not(li:first-child) svg {
  width: 1.5vw;
  fill: var(--dark-font);
  transition: all 0.25s ease-in-out !important;
}

ul.user-profile-sub-menu li:not(li:first-child):hover svg {
  width: 1.5vw;
  fill: var(--red) !important;
}

ul.user-profile-sub-menu li:not(li:first-child):hover {
  background-color: var(--lightest-red);
}

ul.user-profile-sub-menu li:not(li:first-child) a {
  width: 100%;
  height: 100%;
  justify-content: start !important;
  gap: 0.75vw;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
}

ul.user-profile-sub-menu li:not(li:first-child) a:hover {
  color: var(--red);
}

ul.user-profile-sub-menu li:not(li:first-child) a i {
  font-size: 1.5vw;
}

@media screen and (max-width: 992px) {
  .user-profile {
    order: 1;
    transform: translateX(-0.5vw) translateY(0.2vw) scale(0.95);
  }

  button.user-profile-btn {
    box-shadow: none !important;
  }

  button.user-profile-btn > i {
    font-size: 7.55vw;
    margin-right: 1.6vw;
  }

  button.user-profile-btn > span {
    font-size: 3.6vw;
  }

  button.user-profile-btn figure {
    width: 8.5vw;
    height: 8.5vw;
    margin-right: 1.6vw;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

  ul.user-profile-sub-menu {
    width: 40vw;
    top: 140%;
    left: -2vw;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 7px;
  }

  body.dark ul.user-profile-sub-menu {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
  }

  ul.user-profile-sub-menu.active {
    height: 32vw;
  }

  body.light ul.user-profile-sub-menu {
    box-shadow: 0 0.4vw 10px rgba(0, 0, 0, 0.15);
  }

  ul.user-profile-sub-menu li {
    font-size: 3.5vw;
    height: 10vw;
  }

  ul.user-profile-sub-menu li:nth-child(1) {
    margin-top: 2vw;
    padding: 1.4vw 0;
    border-bottom: 0.05vw dashed rgba(234, 192, 129, 0.5);
  }

  ul.user-profile-sub-menu li:not(li:first-child) {
    cursor: pointer;
    padding: 0.9vw 0;
    font-weight: normal;
  }

  ul.user-profile-sub-menu li a {
    padding-top: 1vw;
  }
}
@media (max-width: 450px) {
  .user-profile {
    display: none;
  }
}
