@media (min-width: 1024px) {
  .hongxin-minimal .solutions-dropdown {
    left: 0;
    width: min(760px, calc(100vw - 32px));
    transform: translate(0, 0.35rem);
  }

  .hongxin-minimal .nav-item.solutions:hover .solutions-dropdown,
  .hongxin-minimal .nav-item.solutions:focus-within .solutions-dropdown {
    transform: translate(0, 0);
  }

  .hongxin-minimal .solutions-dropdown-panel {
    overflow: hidden;
  }
}

.solution-mega-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  min-height: 0;
  background: #13243d;
}

.solution-mega-column {
  min-width: 0;
  padding: 18px 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.solution-mega-column:last-child {
  border-right: 0;
}

.solution-mega-title {
  margin-bottom: 10px;
  color: #1ed6ff;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.solution-mega-category-list,
.solution-mega-group-list {
  display: grid;
  gap: 5px;
}

.solution-mega-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.solution-mega-item:hover,
.solution-mega-item:focus-visible,
.solution-mega-item.is-active {
  color: #1ed6ff;
  background: rgba(30, 214, 255, 0.1);
  outline: none;
}

.solution-mega-solution {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f8ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.solution-mega-solution:hover,
.solution-mega-solution:focus-visible {
  border-color: #1ed6ff;
  color: #1ed6ff;
  background: rgba(30, 214, 255, 0.08);
  outline: none;
}

.solution-mega-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
  background: #192d49;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.solution-mega-all:hover,
.solution-mega-all:focus-visible {
  color: #1ed6ff;
}

.mobile-solution-tree {
  display: block;
  padding-bottom: 12px;
}

.mobile-solution-category {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-solution-category summary {
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-solution-links {
  display: grid;
  gap: 4px;
  padding: 0 0 8px 12px;
}

.mobile-solution-group {
  padding: 7px 0;
}

.mobile-solution-group-name {
  margin-bottom: 5px;
  color: #1ed6ff;
  font-size: 11px;
  font-weight: 600;
}

.mobile-solution-links a {
  display: block;
  padding: 4px 0 4px 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

@media (max-width: 1023px) {
  body.hx-mobile-nav-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .hongxin-minimal header.hx-mobile-nav-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    height: 100dvh;
    background: rgba(4, 13, 29, 0.66) !important;
    backdrop-filter: blur(3px);
  }

  .hongxin-minimal header.hx-mobile-nav-open > div:first-child {
    position: absolute !important;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
    width: min(92vw, 440px) !important;
    max-width: none !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b1e3d;
  }

  .hongxin-minimal header.hx-mobile-nav-open > div:first-child img[alt="Hong Xin"] {
    width: auto !important;
    height: 36px !important;
    max-width: 190px;
  }

  .hongxin-minimal header.hx-mobile-nav-open > div:first-child > button:last-child {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    place-items: center;
    border-radius: 50%;
    color: #fff;
  }

  .hongxin-minimal header.hx-mobile-nav-open > div:first-child > button:last-child:focus-visible {
    outline: 2px solid #1ed6ff;
    outline-offset: 2px;
  }

  .hongxin-minimal .hx-mobile-nav-drawer {
    position: absolute !important;
    top: 72px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 2;
    display: block !important;
    width: min(92vw, 440px) !important;
    max-width: none !important;
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: #0b1e3d !important;
    -webkit-overflow-scrolling: touch;
  }

  .hongxin-minimal .hx-mobile-nav-drawer::-webkit-scrollbar {
    display: none;
  }

  .hongxin-minimal .hx-mobile-nav-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
  }

  .hongxin-minimal .hx-mobile-nav-section > button {
    position: relative;
    display: flex !important;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 2px !important;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35;
    text-align: left;
  }

  .hongxin-minimal .hx-mobile-nav-section > button.text-\[\#00C5DC\] {
    color: #1ed6ff !important;
  }

  .hongxin-minimal .hx-mobile-nav-section--expandable > .hx-mobile-nav-toggle::after {
    content: "+";
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #1ed6ff;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
  }

  .hongxin-minimal .hx-mobile-nav-section--expandable.is-open > .hx-mobile-nav-toggle::after {
    content: "−";
  }

  .hongxin-minimal .hx-mobile-nav-submenu[hidden] {
    display: none !important;
  }

  .hongxin-minimal .mobile-products-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 0 12px 14px !important;
  }

  .hongxin-minimal .mobile-products-grid > a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4;
  }

  .hongxin-minimal .mobile-products-grid > a:first-child {
    border-top: 0;
  }

  .hongxin-minimal .mobile-products-grid > a:hover,
  .hongxin-minimal .mobile-products-grid > a:focus-visible {
    color: #1ed6ff !important;
    outline: none;
  }

  .hongxin-minimal .mobile-solution-tree {
    padding: 0 0 12px 14px;
  }

  .hongxin-minimal .mobile-solution-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hongxin-minimal .mobile-solution-category summary {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
  }

  .hongxin-minimal .mobile-solution-category summary::-webkit-details-marker {
    display: none;
  }

  .hongxin-minimal .mobile-solution-category summary::after {
    content: "+";
    color: #1ed6ff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
  }

  .hongxin-minimal .mobile-solution-category[open] summary::after {
    content: "−";
  }

  .hongxin-minimal .mobile-solution-links {
    gap: 0;
    padding: 0 0 8px 12px;
  }

  .hongxin-minimal .mobile-solution-group {
    padding: 0;
  }

  .hongxin-minimal .mobile-solution-group-name {
    display: flex !important;
    min-height: 42px;
    align-items: center;
    margin: 0;
    padding: 9px 8px !important;
    color: rgba(255, 255, 255, 0.64) !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4;
  }

  .hongxin-minimal .mobile-solution-group-name:hover,
  .hongxin-minimal .mobile-solution-group-name:focus-visible {
    color: #1ed6ff !important;
    outline: none;
  }

  .hongxin-minimal .hx-mobile-nav-all {
    display: flex !important;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    padding: 10px 8px !important;
    border-top: 1px solid rgba(30, 214, 255, 0.25);
    color: #1ed6ff !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.35;
    text-transform: capitalize;
  }

  .hongxin-minimal .hx-mobile-nav-cta {
    position: sticky;
    bottom: 0;
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 20px !important;
    padding: 12px 18px !important;
    box-shadow: 0 -12px 22px rgba(11, 30, 61, 0.92);
  }
}

@media (max-width: 520px) {
  .hongxin-minimal header.hx-mobile-nav-open > div:first-child,
  .hongxin-minimal .hx-mobile-nav-drawer {
    width: min(88vw, 380px) !important;
  }
}
