header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: transparent;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(6px);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 43, 226, 0.6),
    rgba(0, 136, 255, 0.6),
    transparent
  );
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(187,170,255,0.4);
}

.logo h1 {
  font-size: 19px;
  color: #c7b9ff;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  transition: 0.25s;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(199,185,255,0.15);
  box-shadow:
    inset 0 0 0 1px rgba(199,185,255,0.35),
    0 0 12px rgba(199,185,255,0.25);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: #c7b9ff;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 45%;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn {
  position: relative;
  font-size: 20px;
  color: #c7b9ff;
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.cart-btn:hover {
  color: #fff;
  background: rgba(199,185,255,0.2);
  box-shadow:
    inset 0 0 0 1px rgba(199,185,255,0.35),
    0 0 12px rgba(199,185,255,0.25);
  transform: scale(1.08);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #c7b9ff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 5px;
  min-width: 18px;
  height: 18px;
  text-align: center;
  line-height: 14px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.user-info:hover {
  background: rgba(199,185,255,0.18);
  box-shadow:
    inset 0 0 0 1px rgba(199,185,255,0.35),
    0 0 10px rgba(199,185,255,0.25);
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(199,185,255,0.4);
}

.username {
  font-size: 14.5px;
  font-weight: 500;
  color: #ddd;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 55px;
  background: rgba(20,20,25,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  min-width: 160px;
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
  z-index: 100;
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.25s;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.lang-switch a {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    color: #aaa;
    background: rgba(255,255,255,0.05);
}

.lang-switch a.active {
    color: #fff;
    background: linear-gradient(90deg, #9b6bff, #7b4dff);
    box-shadow: 0 0 8px rgba(155,107,255,0.4);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .dropdown a[href="/shop/"],
  .dropdown a[href="https://panel.noctier.com"],
  .dropdown a[href="/profile/"],
  .dropdown a[href="/admin/"] {
    display: none;
  }
}

@media (max-width: 700px) {
  header {
    padding: 12px 20px;
    gap: 8px;
  }

  .logo {
    position: relative;
    left: 0;
    transform: none;
  }

  .logo h1 {
    font-size: 17px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .user-info {
    padding: 5px 8px;
    gap: 6px;
  }

  .username {
    display: none;
  }

  .cart-btn {
    font-size: 18px;
    padding: 6px 10px;
  }

  .lang-switch {
    gap: 14px;
    padding: 6px 12px;
  }

  .lang-switch a {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  }

  .lang-switch a.active {
    background: linear-gradient(90deg, #9b6bff, #7b4dff);
    color: #fff;
    box-shadow:
      0 0 12px rgba(155,107,255,0.45),
      inset 0 0 0 1px rgba(255,255,255,0.15);
  }
}
