.we-site-header,
.we-site-header * {
  box-sizing: border-box;
}

.we-site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.we-site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0b5cff 0%, #1677ff 42%, #58c7ff 76%, #7dd3fc 100%);
}

.we-header-inner {
  max-width: 1280px;
  min-height: 82px;
  margin: 0 auto;
  padding: 3px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.we-brand {
  min-width: 224px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #10233f;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.we-brand:hover {
  transform: translateY(-1px);
}

.we-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b5cff 0%, #1677ff 52%, #49b8ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.28);
}

.we-brand-text strong,
.we-brand-text em {
  display: block;
  font-style: normal;
  line-height: 1.12;
}

.we-brand-text strong {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
}

.we-brand-text em {
  margin-top: 5px;
  font-size: 13px;
  color: #10233f;
  letter-spacing: 0;
}

.we-main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.we-main-nav a {
  position: relative;
  min-width: 78px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 14px;
  color: #13213a;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.we-main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1677ff, #58c7ff);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.we-main-nav a:hover {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.08);
  transform: translateY(-1px);
}

.we-main-nav a.active {
  color: #0b63e5;
  background: #eaf3ff;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.12);
}

.we-main-nav a.active::after {
  width: 42px;
}

.we-header-actions {
  min-width: 208px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.we-login-link,
.we-primary-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.we-login-link {
  border: 1px solid #d7e6f7;
  background: #fff;
  color: #31506d;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.we-login-link:hover {
  color: #1677ff;
  border-color: #b8d8ff;
  background: #f7fbff;
  transform: translateY(-1px);
}

.we-member-account {
  gap: 8px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.we-member-account::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
  flex: 0 0 auto;
}

.we-primary-btn {
  border: 0;
  background: linear-gradient(135deg, #0b5cff 0%, #1677ff 60%, #40a9ff 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(22, 119, 255, 0.28);
}

.we-primary-btn:hover {
  color: #fff;
  box-shadow: 0 18px 34px rgba(22, 119, 255, 0.36);
  transform: translateY(-1px);
}

.we-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #d8e7f7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.we-mobile-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #1677ff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

body.we-nav-open .we-mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.we-nav-open .we-mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.we-nav-open .we-mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .we-header-inner {
    gap: 18px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .we-brand {
    min-width: 196px;
  }

  .we-main-nav {
    gap: 4px;
  }

  .we-main-nav a {
    min-width: 0;
    padding: 0 11px;
    font-size: 14px;
  }

  .we-header-actions {
    min-width: 188px;
  }
}

@media (max-width: 900px) {
  .we-header-inner {
    min-height: 66px;
    padding: 3px 16px 0;
  }

  .we-brand {
    min-width: 0;
  }

  .we-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
  }

  .we-brand-text strong {
    font-size: 17px;
  }

  .we-brand-text em {
    font-size: 11px;
  }

  .we-mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .we-main-nav,
  .we-header-actions {
    display: none;
  }

  body.we-nav-open .we-main-nav,
  body.we-nav-open .we-header-actions {
    position: absolute;
    left: 12px;
    right: 12px;
    display: flex;
    z-index: 140;
    border: 1px solid #dbeafe;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.we-nav-open .we-main-nav {
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 12px;
    border-radius: 16px 16px 8px 8px;
  }

  body.we-nav-open .we-main-nav a {
    height: 42px;
    justify-content: flex-start;
    padding: 0 14px;
  }

  body.we-nav-open .we-main-nav a::after {
    display: none;
  }

  body.we-nav-open .we-header-actions {
    top: 426px;
    justify-content: stretch;
    gap: 8px;
    padding: 12px;
    border-top: 0;
    border-radius: 8px 8px 16px 16px;
  }

  body.we-nav-open .we-login-link,
  body.we-nav-open .we-primary-btn {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .we-header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .we-brand-text em {
    display: none;
  }

  .we-brand-mark {
    width: 40px;
    height: 40px;
  }

  .we-login-link,
  .we-primary-btn {
    padding: 0 12px;
    font-size: 13px;
  }
}
