/* ══════════════════════════════
   CAPSULE FLOATING NAVBAR — BLACK THEME
══════════════════════════════ */
:root {
  --nav-bg: rgba(0, 0, 0, 0.95);
  --nav-border: rgba(255, 255, 255, 0.08);
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.navbar.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(0, 0, 0, 1);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span {
  color: rgba(255,255,255,0.6);
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link .chevron {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Blinking Status dot */
.status-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #00ff88;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 8px #00ff88;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 255, 136, 0.4);
  animation: ping 2s infinite ease-out;
}

/* ── Dropdowns ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 220px;
  background: rgba(6, 6, 6, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
}

.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown,
.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-links > li:hover .chevron,
.nav-links > li.active-click .chevron {
  transform: rotate(180deg);
}

/* Currency pill buttons */
.curr-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.curr-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
}
.curr-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 18px;
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dropdown-item-text strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
}
.dropdown-item-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.dropdown-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 6px 14px 4px;
}

/* ── Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── User menu ── */
.user-menu {
  position: relative;
}
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  cursor: pointer;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.user-avatar-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.user-avatar {
  width: 26px;
  height: 26px;
  background: #222222;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  background: rgba(6, 6, 6, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}
.user-menu:hover .user-dropdown,
.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.user-dropdown-item.danger:hover {
  background: rgba(255, 51, 102, 0.1);
  color: #ff3366;
}

/* ── Mobile Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Sidebar ── */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.99);
  backdrop-filter: blur(20px);
  padding: 100px 30px 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.open {
  transform: translateY(0);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  color: #fff;
}
.mobile-submenu {
  padding-left: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-submenu.open {
  max-height: 300px;
}
.mobile-submenu-item {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.mobile-submenu-item:hover {
  color: #ffffff;
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; z-index: 1001; }
  .navbar { top: 10px; height: 50px; }
}
