/* ── Horizontal nav inside MainHeader (desktop ≥992px only) ── */

.main-header__nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
  min-width: 0;
  overflow: visible;
  padding-left: 12px;
  justify-content: center;
  position: relative;
}

/* More ▾ dropdown — right-aligned */
.hnav__panel--more {
  left: auto;
  right: 0;
  transform: none;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
}

.hnav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hnav__btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  height: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  line-height: 1;
}

.hnav__btn:hover,
.hnav__item.open .hnav__btn,
.hnav__btn.active {
  color: #08ef28;
  border-bottom-color: #08ef28;
  background: rgba(8, 239, 40, 0.04);
  text-decoration: none;
}

.hnav__arrow {
  flex-shrink: 0;
  transition: transform 0.18s;
}
.hnav__item.open .hnav__arrow {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.hnav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  min-width: 220px;
  background: #071414;
  border: 1px solid rgba(8, 239, 40, 0.14);
  border-top: 2px solid #08ef28;
  border-radius: 0 0 8px 8px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Mega panel (Trading — 3 sections) */
.hnav__panel--mega {
  display: flex;
  gap: 0;
  min-width: 680px;
  left: 0;
  transform: none;
}

.hnav__panel-col {
  flex: 1;
  min-width: 0;
  padding: 4px;
  border-right: 1px solid rgba(8, 239, 40, 0.08);
}
.hnav__panel-col:last-child {
  border-right: none;
}

.hnav__panel-col-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(8, 239, 40, 0.55);
  padding: 6px 10px 4px;
}

.hnav__panel-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.14s;
}
.hnav__panel-link:hover {
  background: rgba(8, 239, 40, 0.07);
  text-decoration: none;
}

.hnav__panel-link-icon {
  flex-shrink: 0;
  color: #08ef28;
  margin-top: 2px;
}

.hnav__panel-link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hnav__panel-link-text strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  transition: color 0.14s;
}
.hnav__panel-link-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
}
.hnav__panel-link:hover .hnav__panel-link-text strong {
  color: #08ef28;
}

/* Hide on mobile — SideNav handles mobile nav */
@media (max-width: 991.98px) {
  .main-header__nav {
    display: none;
  }
}

/* ── Light theme overrides ── */
html[data-theme="light"] .hnav__panel {
  background: #ffffff;
  border-color: rgba(8, 239, 40, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .hnav__panel-col {
  border-right-color: rgba(8, 239, 40, 0.12);
}
html[data-theme="light"] .hnav__panel-col-title {
  color: rgba(4, 160, 27, 0.7);
}
html[data-theme="light"] .hnav__btn {
  color: rgba(0, 0, 0, 0.65);
}
html[data-theme="light"] .hnav__btn:hover,
html[data-theme="light"] .hnav__item.open .hnav__btn,
html[data-theme="light"] .hnav__btn.active {
  color: #04a01b;
  border-bottom-color: #04a01b;
  background: rgba(8, 239, 40, 0.05);
}
html[data-theme="light"] .hnav__panel-link-text strong {
  color: rgba(0, 0, 0, 0.82);
}
html[data-theme="light"] .hnav__panel-link-text span {
  color: rgba(0, 0, 0, 0.42);
}
html[data-theme="light"] .hnav__panel-link:hover .hnav__panel-link-text strong {
  color: #04a01b;
}
html[data-theme="light"] .hnav__panel-link-icon {
  color: #04a01b;
}
