/* Sidebar */

.sidebar {
  width: 214px;
  flex: 0 0 214px;
}

.sidebar__wrap {
  padding: 16px 12px 12px 12px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 8px;
  border: 1.125px solid #5f2d72;
  background: #371049;
  box-shadow:
    0 4px 20px 0 rgba(176, 29, 193, 0.12) inset,
    0 -4px 0 0 rgba(61, 31, 134, 0.1) inset,
    0 8px 10px 0 rgba(61, 31, 134, 0.15);
}

/* Sidebar Left */

.sidebar__menu-top {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__menu-top li {
  position: relative;
  overflow: hidden;
}

.sidebar__menu-top li a {
  padding: 4px 10px 4px 62px;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-family: "ABC";
  color: var(--primary-text-color);
  font-size: 12px;
  font-weight: 900;
  line-height: normal;
}

.sidebar__menu-top li {
  position: relative;
  display: block;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(86deg, #6802a4 24.6%, #ca17e8 100%);
}

.sidebar__menu-top li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 48px;
  background-image: url(../images/icons/sidebar-dots.webp);
  background-size: 90px 48px;
  background-repeat: no-repeat;
}

.sidebar__menu-top li:nth-child(1) img {
  position: absolute;
  display: block;
  width: 56px;
  bottom: 0px;
  left: 0px;
}

.sidebar__menu-top li:nth-child(2) img {
  position: absolute;
  display: block;
  width: 56px;
  left: 0px;
  bottom: 0;
}

.sidebar__menu-top a {
  position: relative;
  width: 100%;
}

.sidebar__menu-top a > img {
  display: block;
  will-change: transform;
  transition: all var(--secondary-transition);
  transform: scale(1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.sidebar__menu-top li:nth-child(1) a:hover > img,
.sidebar__menu-top li:nth-child(1) a:active > img,
.sidebar__menu-top li:nth-child(1) a:focus > img {
  transform: scale(1.05);
}

.sidebar__menu-top li:nth-child(2) a:hover > img,
.sidebar__menu-top li:nth-child(2) a:active > img,
.sidebar__menu-top li:nth-child(2) a:focus > img {
  transform: scale(1.05);
}

.sidebar__menu-center {
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar__menu-center li {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.sidebar__menu-center li a {
  position: relative;
  min-height: 32px;
  padding: 5px 8px 5px 36px;
  display: flex;
  align-items: center;
  color: var(--primary-text-color);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.6;
}

.sidebar__menu-center a::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 20px;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: currentColor;
  display: inline-block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sidebar__menu-center li:nth-child(1) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-3.svg");
  mask-image: url("../images/icons/sidebar-3.svg");
}

.sidebar__menu-center li:nth-child(2) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-4.svg");
  mask-image: url("../images/icons/sidebar-4.svg");
}

.sidebar__menu-center li:nth-child(3) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-5.svg");
  mask-image: url("../images/icons/sidebar-5.svg");
}

.sidebar__menu-center li:nth-child(4) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-6.svg");
  mask-image: url("../images/icons/sidebar-6.svg");
}

.sidebar__menu-center li:nth-child(5) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-7.svg");
  mask-image: url("../images/icons/sidebar-7.svg");
}

.sidebar__menu-center li:nth-child(6) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-8.svg");
  mask-image: url("../images/icons/sidebar-8.svg");
}

.sidebar__menu-center li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.sidebar__menu-center li:hover::before {
  left: 100%;
}

.sidebar__menu-center li a:hover,
.sidebar__menu-center li a:active,
.sidebar__menu-center li a:focus {
  color: var(--primary-text-hover-color);
}

.sidebar__menu-center li:hover,
.sidebar__menu-center li:active,
.sidebar__menu-center li:focus {
  box-shadow: 0 0 12px rgba(176, 29, 193, 0.4);
}

.sidebar__lang {
  margin-top: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-text-color);
  font-size: 14px;
  line-height: 1.6;
  text-transform: uppercase;
  font-weight: 900;
  border-radius: 8px;
  background: #5f2d72;
}

.sidebar__lang > img:first-child {
  min-width: 24px;
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}

.sidebar__menu-bottom {
  margin-top: 12px;
  padding: 14px 12px;
  align-items: center;
  background-image: url(../images/icons/sidebar-9.webp);
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
}

.sidebar__menu-bottom > span {
  display: block;
  max-width: 110px;
  color: var(--primary-text-color);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar__menu-bottom > span > span {
  margin-top: 4px;
  display: block;
  font-family: "ABC";
  font-size: 14px;
  font-weight: 900;
  line-height: normal;
}

.sidebar__app-button {
  margin-top: 12px;
  padding: 8px 16px;
  min-height: 34px;
  max-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "ABC";
  font-size: 12px;
  font-weight: 900;
  line-height: normal;
  border-radius: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform var(--secondary-transition);
  will-change: transform;
  background: radial-gradient(201% 100% at 50% 100%, #d000d4 0%, #cb00cf 76.44%, #fd97ff 100%);
  box-shadow:
    0 -3px 0 0 #ca00cd inset,
    0 0 9px 0 #fc51ff inset,
    0 2px 12px 0 rgba(252, 81, 255, 0.5);
}

.sidebar__app-button:hover,
.sidebar__app-button:focus,
.sidebar__app-button:active {
  transform: scale(1.05);
}

/* Nav */

.sidebar__nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.sidebar__nav-button {
  min-height: 32px;
  padding: 8px 30px 8px 0;
  color: var(--primary-text-color);
  text-align: left;
  position: relative;
  white-space: normal;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  width: 100%;
  background-color: transparent;
}

.sidebar__nav-button:before {
  content: "";
  background: url(../images/icons/icon-arrow-white.svg);
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-size: contain;
  position: absolute;
  top: 2px;
  bottom: 0;
  right: 8px;
  top: 0;
  transform: rotateX(0);
  width: 12px;
}

.sidebar__nav-button:hover,
.sidebar__nav-button:active {
  opacity: 0.8;
}

.sidebar__nav-button.is-open:before {
  transform: rotateX(180deg);
}

.sidebar__nav-list {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar__nav-list.is-open {
  padding-top: 6px;
  background-color: transparent;
  max-height: 1400px;
  transition: all 0.4s ease-in-out;
}

.sidebar__nav-list a {
  position: relative;
  padding: 6px 0;
  display: block;
  color: var(--primary-text-color);
  background-color: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.sidebar__nav-list a:hover,
.sidebar__nav-list a:active,
.sidebar__nav-list a:focus-visible {
  color: var(--primary-text-hover-color);
}

/* Sidebar Mob */

.sidebar__section-mob {
  display: none;
}

.sidebar__wrap-mob {
  background-color: transparent;
}
