/* ── StockTrendz™ Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 62px;
  background: rgba(10,12,16,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06); z-index: 1000;
  display: flex; align-items: center; transition: background .3s;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; width: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { width: 22px; height: 22px; color: #8b5cf6; }
.logo-text { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.logo-tag { font-size: 0.7rem; font-weight: 900; background: #8b5cf6; color: #fff; padding: 1px 4px; border-radius: 4px; margin-left: 2px; }

.nav-menu { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  color: #a1a1aa; text-decoration: none; font-size: 0.88rem; font-weight: 500;
  border-radius: 8px; transition: all .2s; cursor: pointer;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link--active { color: #fff; background: rgba(139,92,246,0.1); }

.nav-icon { width: 16px; height: 16px; opacity: 0.7; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-mega {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px;
  background: #0b1120; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 12px; display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 1001;
}
.nav-dropdown.open .nav-dropdown-mega { display: block; }

.nav-mega-item {
  display: flex; gap: 12px; padding: 10px; border-radius: 10px;
  text-decoration: none; transition: background .2s;
}
.nav-mega-item:hover { background: rgba(255,255,255,0.04); }
.mega-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mega-icon--purple { background: rgba(139,92,246,0.1); }
.mega-icon--cyan { background: rgba(34,211,238,0.1); }
.mega-icon--green { background: rgba(52,211,153,0.1); }
.mega-icon--amber { background: rgba(251,191,36,0.1); }
.mega-title { color: #fff; font-size: 0.88rem; font-weight: 600; }
.mega-desc { color: #71717a; font-size: 0.75rem; margin-top: 2px; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: #0b1120; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 6px; list-style: none; display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: 1001;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block; padding: 8px 12px; color: #a1a1aa;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  border-radius: 8px; transition: all .2s;
}
.nav-dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* Right Side */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-market-status { display: flex; align-items: center; gap: 10px; }
.nav-ist-clock { color: #71717a; font-family: var(--font-mono); font-size: 0.75rem; }
.nav-session-badge {
  display: flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.badge-closed { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-open { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.session-dot { width: 6px; height: 6px; border-radius: 50%; }
.session-dot.closed { background: #ef4444; }
.session-dot.open { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.nav-avatar-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  background: #1e293b; color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
}

/* Mobile */
.nav-hamburger { display: none; }

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
  }
  .nav-hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
}

html.embed-mode .navbar, html.embed-mode .nav-drawer, html.embed-mode .nav-overlay, html.embed-mode footer.footer { display: none !important; }
html.embed-mode body { padding-top: 0 !important; }
