/* ==========================================================================
   Nexus Investment FX — Unified Public Site Design System
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --nx-navy: #05305c;
  --nx-navy-light: #0a4a8a;
  --nx-navy-dark: #031e3a;
  --nx-orange: #ef9227;
  --nx-gold: #fabc2e;
  --nx-black: #0f1419;
  --nx-text: #1e293b;
  --nx-muted: #64748b;
  --nx-border: #e2e8f0;
  --nx-bg: #f8fafc;
  --nx-white: #ffffff;
  --nx-success: #16c784;
  --nx-danger: #ea3943;
  --nx-radius-sm: 6px;
  --nx-radius: 10px;
  --nx-radius-lg: 16px;
  --nx-shadow-sm: 0 1px 3px rgba(5, 48, 92, 0.06);
  --nx-shadow: 0 4px 24px rgba(5, 48, 92, 0.08);
  --nx-shadow-lg: 0 16px 48px rgba(5, 48, 92, 0.12);
  --nx-header-h: 76px;
  --nx-topbar-h: 42px;
  --nx-ticker-h: 42px;
  --nx-ticker-speed: 45s;
  --nx-ticker-hover: #343b4d;
  --nx-ticker-divider: rgba(255, 255, 255, 0.08);
  --nx-ticker-muted: #848e9c;
  --nx-ticker-down: #f6465d;
  --nx-top-offset: calc(var(--nx-topbar-h) + var(--nx-header-h));
  --nx-nav-icon: var(--nx-orange);
  --nx-nav-icon-hover: var(--nx-gold);
  --nx-nav-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nx-nav-duration: 0.22s;
  --nx-nav-plate-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18' fill='none'%3E%3Cpath d='M10 3 C10 3 10 14 28 14 H132 C150 14 150 3 150 3' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --nx-container: 1300px;
  --nx-header: 1350px;
  --nx-section-y: 64px;
  --nx-section-head-gap: 40px;
  --nx-search-trigger-h: 40px;
  --nx-search-trigger-w: 170px;
  --nx-search-modal-max-w: 640px;
  --nx-search-modal-offset-top: 110px;
  --nx-search-modal-overlay: rgba(12, 17, 29, 0.45);
  --nx-search-modal-shell-gap: 32px;
  --nx-search-modal-head-gap: 10px;
  --nx-search-modal-head-py: 12px;
  --nx-search-modal-head-px: 14px;
  --nx-search-modal-label-px: 20px;
  --nx-search-modal-label-pb: 12px;
  --nx-search-result-gap: 14px;
  --nx-search-result-py: 12px;
  --nx-search-result-px: 20px;
  --nx-font:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nx-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nx-text);
  background: var(--nx-white);
  padding-top: var(--nx-top-offset);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 45px;
}

/* ---- Top bar (market ticker) ---- */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nx-topbar-h);
  background: var(--nx-navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10001;
  overflow: hidden;
}

.site-ticker {
  height: 100%;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: stretch;
  height: var(--nx-topbar-h);
  animation: nx-ticker var(--nx-ticker-speed) linear infinite;
  will-change: transform;
}

.site-ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes nx-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid var(--nx-ticker-divider);
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.ticker-item:hover {
  background: var(--nx-ticker-hover);
}

.ticker-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.ticker-item-icon--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--nx-white);
  font-size: 11px;
  font-weight: 700;
}

.ticker-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ticker-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-white);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item-symbol {
  font-size: 12px;
  font-weight: 500;
  color: var(--nx-ticker-muted);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.ticker-item-market {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}

.ticker-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-white);
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ticker-item-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ticker-change-arrow {
  font-size: 9px;
  line-height: 1;
  flex-shrink: 0;
}

.ticker-item-change.price-up {
  color: var(--nx-success);
}
.ticker-item-change.price-down {
  color: var(--nx-ticker-down);
}
.ticker-item-change.price-neutral {
  color: var(--nx-white);
}

.ticker-loading {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--nx-ticker-muted);
  font-size: 13px;
  font-weight: 500;
}

.ticker-error {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--nx-ticker-muted);
  font-size: 13px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    transform: none;
  }

  .nav-list > li > a,
  .nav-dropdown-btn,
  .nav-dropdown-btn svg,
  .nav-dropdown-menu a,
  .nav-item-icon,
  .nav-drop-title,
  .nav-drop-desc,
  .nav-dropdown-menu.nav-dropdown-menu--portal {
    transition: none;
  }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: var(--nx-topbar-h);
  left: 0;
  right: 0;
  height: var(--nx-header-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 1px 0 rgba(5, 48, 92, 0.04);
  z-index: 9999;
  overflow: visible;
}

.header-inner {
  max-width: var(--nx-header);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 62px;
  width: auto;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nx-text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--nx-radius-sm);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition: color var(--nx-nav-duration) var(--nx-nav-ease);
}

/* Plate underline — flat center with upward-curving ends */
.nav-list > li > a::after,
.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: calc(100% + 6px);
  max-width: calc(100% + 14px);
  height: 18px;
  transform: translateX(-50%) scaleX(0.68);
  transform-origin: center bottom;
  opacity: 0;
  background-color: var(--nx-orange);
  -webkit-mask: var(--nx-nav-plate-mask) center bottom / 100% 100% no-repeat;
  mask: var(--nx-nav-plate-mask) center bottom / 100% 100% no-repeat;
  transition:
    transform 0.34s var(--nx-nav-ease),
    opacity 0.26s ease,
    background-color var(--nx-nav-duration) ease;
  pointer-events: none;
  z-index: 2;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a,
.nav-dropdown-btn:hover,
.nav-dropdown:hover > .nav-dropdown-btn,
.nav-dropdown.open > .nav-dropdown-btn,
.nav-list > li.active > a,
.nav-list > li.active > .nav-dropdown-btn {
  color: var(--nx-navy);
  background: transparent;
}

.nav-list > li > a:hover::after,
.nav-list > li:hover > a::after,
.nav-dropdown-btn:hover::after,
.nav-dropdown:hover > .nav-dropdown-btn::after,
.nav-dropdown.open > .nav-dropdown-btn::after,
.nav-list > li.active > a::after,
.nav-list > li.active > .nav-dropdown-btn::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-list > li > a:focus-visible,
.nav-dropdown-btn:focus-visible {
  outline: 2px solid rgba(239, 146, 39, 0.55);
  outline-offset: 2px;
}

.nav-dropdown-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  color: inherit;
  transition:
    transform 0.28s var(--nx-nav-ease),
    opacity var(--nx-nav-duration) ease,
    color var(--nx-nav-duration) ease;
}

.nav-dropdown-btn:hover svg,
.nav-dropdown.open .nav-dropdown-btn svg,
.nav-list > li.active .nav-dropdown-btn svg {
  opacity: 1;
}

.nav-dropdown.open .nav-dropdown-btn svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Standard dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 520px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 100;
}

@media (min-width: 1101px) {
  .site-header.site-header--dropdown-open,
  .site-header:has(.nav-dropdown.open) {
    border-bottom: none;
    box-shadow: none;
  }

  .site-header.site-header--dropdown-open
    .nav-dropdown.open
    > .nav-dropdown-btn {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--nx-radius-sm) var(--nx-radius-sm) 0 0;
    transition:
      color var(--nx-nav-duration) var(--nx-nav-ease),
      background 0.18s ease,
      border-radius 0.18s ease;
  }

  .site-header.site-header--dropdown-open
    .nav-dropdown.open
    > .nav-dropdown-btn::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .nav-dropdown-menu.nav-dropdown-menu--portal {
    position: fixed;
    left: 50%;
    right: auto;
    width: 520px;
    max-width: calc(100vw - 32px);
    margin-top: 0;
    padding-top: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nx-border);
    border-top: none;
    border-radius: 0 0 var(--nx-radius) var(--nx-radius);
    box-shadow: 0 12px 32px rgba(5, 48, 92, 0.12);
    transform: translateX(-50%) translateY(-3px);
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.28s var(--nx-nav-ease);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
  }

  /* Invisible bridge so the pointer can travel from the trigger to the portaled panel */
  .nav-dropdown-menu.nav-dropdown-menu--portal::before {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    top: -18px;
    height: 18px;
  }

  .nav-dropdown-menu.nav-dropdown-menu--portal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-menu.nav-dropdown-menu--portal.nav-dropdown-menu--switch,
  .nav-dropdown-menu.nav-dropdown-menu--portal.nav-dropdown-menu--switch.is-open {
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
  }
}

.nav-dropdown-menu__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  align-items: start;
}

.nav-dropdown-menu__col {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--nx-text);
  text-decoration: none;
  border-radius: var(--nx-radius-sm);
  border: 1px solid transparent;
}

.nav-drop-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-drop-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nx-navy);
  transition: color var(--nx-nav-duration) ease;
}

.nav-drop-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--nx-muted);
  transition: color var(--nx-nav-duration) ease;
}

.nav-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--nx-nav-icon);
  margin-top: 1px;
}

.nav-item-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-dropdown-menu a:hover .nav-drop-title {
  color: var(--nx-orange);
}

.nav-dropdown-menu a:focus-visible {
  outline: 2px solid rgba(239, 146, 39, 0.45);
  outline-offset: 1px;
}

/* Mega menu panel */
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(560px, calc(100vw - 48px));
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 20px 60px rgba(5, 48, 92, 0.14);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s,
    transform 0.22s,
    visibility 0.22s;
  z-index: 100;
}

.nav-dropdown.nav-mega.open .nav-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mega-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-border);
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--nx-radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--nx-text);
  transition:
    background 0.15s,
    color 0.15s;
  margin-bottom: 2px;
}

.mega-item:hover {
  background: var(--nx-bg);
  color: var(--nx-orange);
}

.mega-item-title {
  display: block;
  min-width: 0;
}

.mega-footer {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--nx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mega-footer-text {
  font-size: 13px;
  color: var(--nx-muted);
}

.mega-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-orange);
  text-decoration: none;
}

.mega-footer a:hover {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nx-search-trigger-h);
  height: var(--nx-search-trigger-h);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--nx-muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

.header-search-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--nx-muted);
  flex-shrink: 0;
}

.header-search-trigger:hover {
  color: var(--nx-navy);
  opacity: 0.9;
}

.header-search-trigger:hover svg {
  color: var(--nx-navy);
}

.header-search-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 48, 92, 0.2);
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  min-width: 90px;
  height: var(--nx-search-trigger-h);
  padding: 0 10px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--nx-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}
.lang-toggle .lang-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-toggle .lang-caret {
  width: 12px;
  height: 12px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.lang-switch.open .lang-caret {
  transform: rotate(180deg);
}

.lang-toggle:hover {
  opacity: 0.9;
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 48, 92, 0.2);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 140;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-menu button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  color: var(--nx-text);
  border-radius: var(--nx-radius-sm);
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--nx-bg);
  color: var(--nx-navy);
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
}

.search-modal.open {
  display: block;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--nx-search-modal-overlay);
}

.search-modal-dialog {
  position: relative;
  width: min(
    var(--nx-search-modal-max-w),
    calc(100vw - var(--nx-search-modal-shell-gap))
  );
  margin: var(--nx-search-modal-offset-top) auto 0;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  overflow: hidden;
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: var(--nx-search-modal-head-gap);
  padding: var(--nx-search-modal-head-py) var(--nx-search-modal-head-px);
  border-bottom: 1px solid var(--nx-border);
}

.search-modal-head svg {
  width: 18px;
  height: 18px;
  color: var(--nx-muted);
}

.search-modal-head input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--nx-text);
}

.search-modal-head input::placeholder {
  color: var(--nx-muted);
}

.search-modal-close {
  border: none;
  background: var(--nx-bg);
  color: var(--nx-muted);
  border-radius: var(--nx-radius);
  font: 700 13px/1 var(--nx-font);
  padding: 10px 12px;
  cursor: pointer;
}

.search-modal-body {
  padding: 12px 0 0;
}
.search-modal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-muted);
  padding: 0 var(--nx-search-modal-label-px) var(--nx-search-modal-label-pb);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results li + li {
  border-top: 1px solid var(--nx-border);
}

.search-result-btn {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-search-result-gap);
  padding: var(--nx-search-result-py) var(--nx-search-result-px);
  text-align: left;
  cursor: pointer;
}

.search-result-btn:hover {
  background: var(--nx-bg);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-result-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 146, 39, 0.16);
  color: #b96a00;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-result-name {
  display: block;
  font-size: 16px;
  color: var(--nx-text);
  font-weight: 600;
  line-height: 1.2;
}

.search-result-sub {
  display: block;
  font-size: 13px;
  color: var(--nx-muted);
  margin-top: 3px;
}

.search-result-right {
  font-size: 14px;
  color: var(--nx-text);
  white-space: nowrap;
  font-weight: 600;
}

.header-actions .btn-ghost {
  padding: 9px 20px;
  font-size: 15px;
}

.header-actions .btn-primary {
  padding: 9px 22px;
  font-size: 15px;
}

@media (max-width: 1360px) {
  .header-inner {
    gap: 14px;
  }
  .nav-list > li > a,
  .nav-dropdown-btn {
    font-size: 15px;
    padding: 9px 10px;
  }
  .header-search-trigger {
    width: 150px;
  }
  .header-actions .btn-ghost {
    padding: 8px 14px;
    font-size: 14px;
  }
  .header-actions .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1240px) {
  .header-tools {
    display: none;
  }
}

/* Header auth buttons: premium styling */
.header-actions .btn,
.mobile-auth .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-position 0.55s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.header-actions .btn-ghost,
.mobile-auth .btn-ghost {
  color: #113570;
  background: transparent;
  border: 1px solid #113570;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.header-actions .btn-primary {
  color: var(--nx-white);
  background: #113570;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.mobile-auth .btn-primary {
  color: var(--nx-white);
  background: #113570;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.header-actions .btn-ghost:hover,
.mobile-auth .btn-ghost:hover {
  color: #113570;
  background: #e8eef5;
  border-color: #113570;
  box-shadow: none;
}

.header-actions .btn-primary:hover {
  color: var(--nx-white);
  background: #1a5c9e;
  border-color: transparent;
  box-shadow: none;
}

.mobile-auth .btn-primary:hover {
  color: var(--nx-white);
  background: #1a5c9e;
  border-color: transparent;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--nx-radius-sm);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  color: var(--nx-text);
  background: transparent;
  border: 1px solid var(--nx-border);
}

.btn-ghost:hover {
  border-color: var(--nx-navy);
  color: var(--nx-navy);
}

.btn-primary {
  color: var(--nx-white);
  background: linear-gradient(135deg, #fc8700, #001a36);
  box-shadow: 0 4px 14px rgba(239, 146, 39, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(239, 146, 39, 0.45);
}

.btn-navy {
  color: var(--nx-white);
  background: var(--nx-navy);
}

.btn-navy:hover {
  background: var(--nx-navy-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline-light {
  color: var(--nx-white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--nx-white);
}

.mobile-search {
  width: 100%;
}

.header-mobile-slot {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--nx-radius-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 10000;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 2px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--nx-navy);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Page banner (inner pages) ---- */
.page-banner {
  background: linear-gradient(
    135deg,
    var(--nx-navy-dark) 0%,
    var(--nx-navy) 50%,
    var(--nx-navy-light) 100%
  );
  color: var(--nx-white);
  padding: 20px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 0%,
    rgba(239, 146, 39, 0.12) 0%,
    transparent 55%
  );
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--nx-gold);
}

.breadcrumb span:not(.breadcrumb-sep),
.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-0.5px);
  user-select: none;
}

.breadcrumb-sep svg {
  display: block;
  width: 12px;
  height: 12px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-banner-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

.page-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 20px 0 32px;
  }
}

/* ---- Sections ---- */
.section {
  padding: var(--nx-section-y) 0;
}
.section-gray {
  background: var(--nx-bg);
}
.section-navy {
  background: var(--nx-navy);
  color: var(--nx-white);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--nx-section-head-gap);
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-orange);
  margin-bottom: 12px;
}

.section-navy .section-eyebrow {
  color: var(--nx-gold);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--nx-navy);
  margin-bottom: 16px;
}

.section-navy .section-head h2 {
  color: var(--nx-white);
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--nx-muted);
  line-height: 1.7;
}

.section-navy .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 32px;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.card:hover {
  box-shadow: var(--nx-shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 48, 92, 0.06);
  border-radius: var(--nx-radius);
  margin-bottom: 20px;
}

.card-icon img {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-orange);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---- Stats ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nx-border);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--nx-shadow);
  max-width: var(--nx-container);
}

.stat-cell {
  background: var(--nx-white);
  padding: 28px 20px;
  text-align: center;
}

.stat-cell strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.stat-cell span {
  font-size: 13px;
  color: var(--nx-muted);
  font-weight: 500;
}

/* ---- Split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--nx-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.split-content p {
  color: var(--nx-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--nx-text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--nx-orange);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.split-visual {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: var(--nx-bg);
  padding: 32px;
  border: 1px solid var(--nx-border);
}

.split-visual img {
  margin: 0 auto;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 28px 24px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-gold));
  color: var(--nx-white);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--nx-muted);
  line-height: 1.6;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(
    135deg,
    var(--nx-navy-dark),
    var(--nx-navy-light)
  );
  color: var(--nx-white);
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ---- Related products ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-item {
  display: block;
  padding: 22px 24px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

.related-item:hover {
  border-color: rgba(239, 146, 39, 0.35);
  box-shadow: var(--nx-shadow);
  transform: translateY(-2px);
}

.related-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.related-item span {
  font-size: 13px;
  color: var(--nx-muted);
  line-height: 1.5;
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, var(--nx-navy-dark) 0%, #021528 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr);
  gap: 48px 64px;
}

.footer-brand__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-brand__logo img:only-child {
  height: 70px;
  width: auto;
}

.footer-brand__logo .footer-brand__icon,
.footer-brand__logo .footer-brand__logo-text {
  display: block;
  height: auto;
}

.footer-brand__logo .footer-brand__icon {
  flex-shrink: 0;
  width: 72px;
}

.footer-brand__logo .footer-brand__logo-text {
  flex: 0 0 auto;
  width: 135px;
  max-width: 135px;
}

.footer-brand__text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact a:hover {
  color: var(--nx-gold);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.58);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer-social__link:hover {
  background: var(--nx-orange);
  border-color: var(--nx-orange);
}

.footer-social__link img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--nx-gold);
}

.footer-bottom {
  margin-top: 36px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-bottom__legal {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
  max-width: 720px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.footer-badge--ssl {
  background: rgba(22, 199, 132, 0.16);
  border-color: rgba(22, 199, 132, 0.55);
  color: #d4fae8;
}

.footer-badge__icon {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-badge--ssl .footer-badge__icon {
  color: var(--nx-success);
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--nx-white);
}

.data-table th {
  background: var(--nx-navy);
  color: var(--nx-white);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
}

.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--nx-border);
}

.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:nth-child(even) td {
  background: var(--nx-bg);
}

.note-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(239, 146, 39, 0.06);
  border-left: 4px solid var(--nx-orange);
  border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  font-size: 14px;
  color: var(--nx-muted);
  line-height: 1.65;
}

.note-box a {
  color: var(--nx-orange);
  font-weight: 600;
  text-decoration: none;
}

.note-box a:hover {
  text-decoration: underline;
}

/* ---- Pills ---- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 8px 16px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-navy);
}

/* ---- Legal content ---- */
.legal-body {
  max-width: 780px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nx-orange);
}
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin: 24px 0 10px;
}
.legal-body .legal-notice {
  background: #f7f9fc;
  border: 1px solid var(--nx-border);
  border-left: 4px solid var(--nx-navy);
  border-radius: var(--nx-radius);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.legal-body .legal-notice h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}
.legal-body .legal-notice p {
  margin: 0;
}
.legal-body p,
.legal-body li {
  font-size: 15px;
  color: var(--nx-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-body ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-body .title-section h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nx-navy);
  margin-bottom: 8px;
}
.legal-body .last-updated {
  font-size: 14px;
  color: var(--nx-muted);
  margin-bottom: 16px;
}
.legal-body .intro-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.legal-body .toc {
  background: var(--nx-bg);
  border-radius: var(--nx-radius);
  padding: 24px;
  margin-bottom: 40px;
}
.legal-body .toc h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--nx-navy);
}
.legal-body .toc a {
  color: var(--nx-orange);
  text-decoration: none;
  font-size: 14px;
}
.legal-body .toc li {
  margin-bottom: 8px;
}
.legal-body .legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin: 32px 0 12px;
}
.legal-body .legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

/* ---- Responsive ---- */
@keyframes nx-nav-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .container {
    padding-inline: 32px;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--nx-white);
  }

  .menu-toggle {
    display: flex;
    margin-left: 0;
  }
  .header-actions {
    display: none;
  }

  .header-mobile-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    flex-shrink: 0;
    min-width: 72px;
    height: 40px;
    margin-left: auto;
    margin-right: 4px;
  }

  .header-mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 5px 19px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 7px;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease,
      background 0.18s ease,
      border-color 0.18s ease;
  }

  .header-mobile-slot .lang-switch {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .header-mobile-slot .lang-toggle {
    min-width: auto;
    height: 40px;
    padding: 0 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-mobile-slot .lang-toggle:hover {
    opacity: 0.75;
  }

  .header-mobile-slot .lang-toggle:focus-visible {
    outline: 2px solid var(--nx-orange);
    outline-offset: 2px;
    box-shadow: none;
  }

  .header-mobile-slot .lang-menu {
    z-index: 10002;
    top: calc(100% + 10px);
  }

  body.nav-open .header-mobile-login {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.94);
    pointer-events: none;
  }

  body.nav-open .header-mobile-slot .lang-switch {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--nx-nav-top, var(--nx-top-offset));
    background: rgba(3, 30, 58, 0.5);
    z-index: 10000;
    animation: nx-nav-backdrop-in 0.25s ease;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--nx-nav-top, var(--nx-top-offset));
    right: 0;
    left: auto;
    bottom: auto;
    width: min(400px, calc(100vw - 40px));
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - var(--nx-nav-top, var(--nx-top-offset)));
    max-height: calc(100dvh - var(--nx-nav-top, var(--nx-top-offset)));
    background: var(--nx-white);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0.32s;
    flex: unset;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
    border-left: 1px solid var(--nx-border);
    border-bottom: 1px solid var(--nx-border);
    border-radius: 0;
    box-shadow: -12px 0 40px rgba(5, 48, 92, 0.14);
  }

  .site-nav.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s;
  }

  .nav-list {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 16px;
    overflow: visible;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--nx-border);
  }

  .nav-list > li:last-child {
    border-bottom: none;
  }

  .nav-list > li > a,
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    background: transparent;
    white-space: normal;
    text-align: left;
    transition:
      color var(--nx-nav-duration) ease,
      background var(--nx-nav-duration) ease,
      padding-left 0.28s var(--nx-nav-ease),
      box-shadow 0.28s var(--nx-nav-ease);
  }

  .nav-list > li > a::after,
  .nav-dropdown-btn::after {
    display: none;
  }

  .nav-list > li > a:hover,
  .nav-dropdown-btn:hover {
    background: rgba(5, 48, 92, 0.04);
    color: var(--nx-navy);
  }

  .nav-dropdown.open > .nav-dropdown-btn,
  .nav-list > li.active > a,
  .nav-list > li.active > .nav-dropdown-btn {
    color: var(--nx-navy);
    background: rgba(5, 48, 92, 0.04);
    box-shadow: inset 3px 0 0 var(--nx-orange);
    padding-left: 12px;
  }

  .nav-dropdown-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .nav-dropdown.nav-mega {
    width: 100%;
    min-width: 0;
  }

  .nav-dropdown-menu,
  .nav-mega-panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    translate: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown.nav-mega.open .nav-mega-panel {
    max-height: 1400px;
    padding: 0 0 14px;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    translate: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav-dropdown-menu__cols {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .nav-dropdown-menu__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .nav-dropdown-menu a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nx-text);
    background: var(--nx-bg);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-sm);
    margin: 0;
  }

  .nav-drop-title {
    font-size: 16px;
  }

  .nav-drop-desc {
    font-size: 13px;
  }

  .nav-item-icon svg {
    width: 32px;
    height: 32px;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .mega-col,
  .mega-footer {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .mega-col {
    background: var(--nx-bg);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    padding: 12px;
  }

  .mega-label {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 10px;
  }

  .mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    margin-bottom: 6px;
    font-size: 15px;
    background: var(--nx-white);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-sm);
  }

  .mega-item:last-child {
    margin-bottom: 0;
  }

  .mega-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 16px;
    background: rgba(5, 48, 92, 0.04);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
  }

  .mega-footer-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .mega-footer a {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-orange);
  }

  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0;
    padding: 16px 16px max(28px, env(safe-area-inset-bottom));
    background: var(--nx-white);
  }

  .mobile-auth__actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .mobile-auth__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
  }

  .mobile-auth__actions .btn-ghost,
  .header-mobile-login {
    color: #113570;
    background: var(--nx-white);
    border: 1.5px solid #113570;
    box-shadow: none;
    transition:
      background-color 0.2s ease,
      color 0.18s ease,
      border-color 0.18s ease;
  }

  .mobile-auth__actions .btn-ghost:hover,
  .header-mobile-login:hover {
    background: #e8eef5;
    border-color: #113570;
    box-shadow: none;
  }

  .mobile-auth__actions .btn-primary {
    color: var(--nx-white);
    background: #113570;
    border: 1.5px solid transparent;
    box-shadow: none;
  }

  .mobile-auth__actions .btn-primary:hover {
    background: #1a5c9e;
    box-shadow: none;
  }

  .mobile-auth .header-search-trigger {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 960px) {
  .footer-brand__logo .footer-brand__icon {
    width: min(48px, 14vw);
  }

  .footer-brand__logo .footer-brand__logo-text {
    width: min(90px, 34vw);
    max-width: none;
  }
}

@media (max-width: 540px) {
  .footer-brand__logo {
    gap: 8px;
  }

  .footer-brand__logo .footer-brand__icon {
    width: min(40px, 12vw);
  }

  .footer-brand__logo .footer-brand__logo-text {
    width: min(75px, 30vw);
  }
}

@media (max-width: 900px) {
  .container {
    padding-inline: 24px;
  }
  .header-inner {
    padding-inline: 20px;
  }

  .site-nav {
    width: min(380px, calc(100vw - 24px));
    top: var(--nx-nav-top, var(--nx-top-offset));
    right: 0;
    left: auto;
    bottom: auto;
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 4.5vw, 1.875rem);
    line-height: 1.22;
  }

  .section-head p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .page-banner-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .split {
    gap: 32px;
  }
  .split-visual {
    padding: 24px;
  }
  .cta-band {
    padding: 44px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --nx-header-h: 64px;
    --nx-section-y: 44px;
    --nx-section-head-gap: 28px;
    --nx-search-modal-offset-top: 84px;
    --nx-search-modal-shell-gap: 20px;
    --nx-search-modal-head-px: 12px;
    --nx-search-modal-label-px: 16px;
    --nx-search-result-px: 16px;
  }

  .container {
    padding-inline: 20px;
  }
  .header-inner {
    padding-inline: 20px;
  }

  body {
    padding-top: var(--nx-top-offset);
  }
  .site-header {
    height: var(--nx-header-h);
  }
  .site-logo img {
    height: 48px;
  }

  .header-mobile-slot {
    min-width: 64px;
    margin-right: 2px;
  }

  .header-mobile-slot .lang-toggle {
    padding: 0 2px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    top: var(--nx-nav-top, var(--nx-top-offset));
    right: 0;
    left: 0;
    bottom: auto;
    border-left: none;
    border-radius: 0;
  }

  .ticker-item {
    min-width: 182px;
    padding: 0 14px;
    gap: 8px;
  }
  .ticker-item-icon {
    width: 22px;
    height: 22px;
  }
  .ticker-item-name {
    font-size: 12px;
  }
  .ticker-item-symbol {
    font-size: 12px;
  }
  .ticker-item-price {
    font-size: 12px;
  }
  .ticker-item-change {
    font-size: 10px;
  }

  .page-banner h1 {
    font-size: clamp(1.625rem, 7vw, 2rem);
  }

  .page-banner-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .breadcrumb {
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-head p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .section-head h2 {
    font-size: clamp(1.4375rem, 6vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .card {
    padding: 24px 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: var(--nx-radius);
  }

  .stat-cell {
    padding: 20px 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-item {
    padding: 22px 20px;
  }

  .split-visual {
    padding: 20px;
  }
  .split-content .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band {
    padding: 36px 0;
  }

  .cta-band p {
    font-size: 1rem;
    padding-inline: 4px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 4px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .note-box {
    padding: 16px 18px;
    font-size: 13px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    align-items: start;
  }

  .footer-top {
    gap: 28px;
  }
  .footer-brand__logo img:only-child {
    height: 56px;
  }
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-badges {
    width: 100%;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-item {
    padding: 18px 20px;
  }

  .search-modal-dialog {
    border-radius: var(--nx-radius);
  }
  .search-modal-head input {
    font-size: 18px;
  }
  .search-modal-label {
    font-size: 13px;
  }
  .search-result-name {
    font-size: 15px;
  }
  .search-result-sub {
    font-size: 12px;
  }
  .search-result-right {
    font-size: 13px;
  }

  .legal-body .title-section h1 {
    font-size: 1.625rem;
  }
  .legal-body .toc {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .header-inner {
    padding-inline: 16px;
  }

  .nav-list {
    padding-inline: 12px;
  }

  .mobile-auth {
    padding-inline: 12px;
  }

  .pill-row {
    justify-content: flex-start;
  }
}

@media (hover: none) {
  .card:hover,
  .related-item:hover {
    transform: none;
  }
}

@media (min-width: 1101px) {
  .mobile-auth {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .site-nav .mobile-auth {
    display: flex;
  }

  .header-tools {
    display: none;
  }
}

.stock-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--nx-navy-dark) 0%, var(--nx-navy) 100%);
  color: var(--nx-white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
