header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #09090A;
  color: #FFF;
  text-align: center;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.header-content-pc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-content-mobile {
  display: none;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-left .nav-list {
  display: flex;
}
.header-left .list-item {
  position: relative;
  padding: 25px 30px 16px 30px;
  margin-bottom: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}
.header-left .list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../img/common/header/header-nav-select.png') no-repeat top center;
  background-size: contain;
  filter: brightness(2);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.header-left .list-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 84%;
  height: 4px;
  background: linear-gradient(270deg, #AB4FFF 0%, #FF4DD9 100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 1;
}
.header-left .list-item a {
  position: relative;
  z-index: 1;
}
.header-left .list-item a span {
  transition: all 0.4s ease;
}
.header-left .list-item.active::before {
  opacity: 1;
}
.header-left .list-item.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}
.header-left .list-item.active a span {
  background: linear-gradient(270deg, #AB4FFF 0%, #FF4DD9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-left .list-item.no-pseudo::before,
.header-left .list-item.no-pseudo::after {
  display: none !important;
}
.header-left .list-item.no-pseudo.active a span {
  background: none;
  -webkit-text-fill-color: #FFF;
}
.header-right {
  display: flex;
  gap: 24px;
}
.header-right .upgrade {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 5px 13px;
  font-size: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.header-right .upgrade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FF8926;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}
.header-right .upgrade .upgrade-img,
.header-right .upgrade span {
  position: relative;
  z-index: 1;
}
.header-right .upgrade .upgrade-img {
  margin-right: 3px;
}
.header-right .upgrade:hover {
  border: 1px solid #FF8926;
}
.header-right .upgrade:hover::before {
  transform: translateX(0);
}
.header-right .login {
  padding: 6px 24px;
  font-size: 14px;
  border-radius: 8px;
  background: linear-gradient(270deg, #765BFF 0%, #AB4FFF 25%, #FF4DD9 50%, #AB4FFF 75%, #765BFF 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: all 0.6s ease;
  cursor: pointer;
}
.header-right .login:hover {
  background-position: 0% 0;
}
.header-right .menu-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.header-right .menu-container .mediaio-menu {
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: center center;
  display: inline-block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.header-right .menu-container.active .mediaio-menu {
  transform: rotate(180deg);
}
.header-right .menu-container .dropdown-menu {
  position: absolute;
  top: 170%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  background: #09090A;
  border-radius: 6px;
  display: none;
  overflow: visible;
}
.header-right .menu-container .dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 30px;
  background: transparent;
}
.header-right .menu-container .dropdown-menu .menu-list {
  background: #09090A;
  border-radius: 6px;
  width: 155px;
  height: 88px;
}
.header-right .menu-container .dropdown-menu .menu-item a {
  display: block;
  padding: 10px 0;
  color: #FFF;
  text-align: center;
  font-size: 16px;
  text-transform: capitalize;
  transition: all 0.2s ease;
}
.header-right .menu-container .dropdown-menu .menu-item a:hover {
  background: linear-gradient(270deg, #AB4FFF 0%, #FF4DD9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 1200px) {
  .header-right .menu-container .dropdown-menu {
    left: 0;
    transform: translateX(-72%);
  }
}
@media (max-width: 1000px) {
  .header-left {
    gap: 28px;
  }
  .header-left .header-logo {
    max-width: 112px;
  }
  .header-left .header-logo img {
    width: 100%;
  }
  .header-left .list-item {
    font-size: 14px;
  }
  .header-right {
    gap: 16px;
  }
  .header-right .upgrade,
  .header-right .login {
    font-size: 12px;
  }
  .header-right .menu-container .mediaio-menu {
    font-size: 28px;
    transform-origin: center center;
    display: inline-block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .header-right .menu-container .dropdown-menu::before {
    height: 20px;
  }
  .header-right .menu-container .dropdown-menu .menu-list {
    width: 135px;
    height: 76px;
  }
  .header-right .menu-container .dropdown-menu .menu-item a {
    padding: 8px 0;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 16px 0;
  }
  .header-content-pc {
    display: none;
  }
  .header-content-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-left-mobile {
    max-width: 112px;
  }
  .header-left-mobile img {
    width: 100%;
  }
  .header-right-mobile {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #FFF;
  }
  .header-right-mobile .login-mobile {
    padding: 4px 17px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    background: linear-gradient(270deg, #765BFF 0%, #AB4FFF 25%, #FF4DD9 50%, #AB4FFF 75%, #765BFF 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: all 0.6s ease;
    cursor: pointer;
  }
  .header-right-mobile .login-mobile.active {
    background-position: 0% 0;
  }
  .header-right-mobile .menu-container-mobile {
    position: relative;
    cursor: pointer;
  }
  .header-right-mobile .menu-container-mobile .mediaio-menu-mobile {
    font-size: 24px;
  }
  .header-right-mobile .dropdown-menu-mobile {
    position: fixed;
    top: 65px;
    right: 0;
    width: 130px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(0deg, #09090A 0%, #09090A 100%), #D9D9D9;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }
  .header-right-mobile .dropdown-menu-mobile.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .header-right-mobile .dropdown-menu-mobile .menu-list-mobile {
    padding: 13px 16px;
  }
  .header-right-mobile .dropdown-menu-mobile .menu-item-mobile a {
    display: block;
    padding: 7px 0;
    color: #FFF;
    text-align: center;
    font-size: 14px;
    text-transform: capitalize;
    transition: all 0.2s ease;
  }
  .header-right-mobile .dropdown-menu-mobile .menu-item-mobile a:hover,
  .header-right-mobile .dropdown-menu-mobile .menu-item-mobile a.active {
    background: linear-gradient(270deg, #AB4FFF 0%, #FF4DD9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
