.navbar {
  position: fixed;
  isolation: auto;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 18px;
  border-radius: 18px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0,255,255,0.25);
  box-shadow:
    0 0 15px rgba(0,255,255,0.35),
    inset 0 0 10px rgba(0,255,255,0.1);

  z-index: 9997;
  overflow: visible; 
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(0,255,255,0.2),
    transparent 70%
  );

  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;

  background:
    linear-gradient(90deg, transparent, rgba(0,255,255,0.9), transparent) top left / 0% 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(0,255,255,0.9), transparent) top right / 2px 0% no-repeat,
    linear-gradient(270deg, transparent, rgba(0,255,255,0.9), transparent) bottom right / 0% 2px no-repeat,
    linear-gradient(0deg, transparent, rgba(0,255,255,0.9), transparent) bottom left / 2px 0% no-repeat;

  filter: drop-shadow(0 0 8px rgba(0,255,255,0.7));
  pointer-events: none;

  animation: navbarBorder 3.2s ease-in-out infinite;
}

@keyframes navbarBorder {
  0% {
    background-size:
      0% 3px,
      3px 0%,
      0% 3px,
      3px 0%;
  }

  25% {
    background-size:
      100% 3px,
      3px 0%,
      0% 3px,
      3px 0%;
  }

  50% {
    background-size:
      100% 3px,
      3px 100%,
      0% 3px,
      3px 0%;
  }

  75% {
    background-size:
      100% 3px,
      3px 100%,
      100% 3px,
      3px 0%;
  }

  100% {
    background-size:
      100% 3px,
      3px 100%,
      100% 3px,
      3px 100%;
  }
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;     
  object-fit: cover;
  border: 1px solid rgba(0,255,255,0.2);
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  display: none;
  color: #eaffff;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 12px;
  right: 12px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 16px;
  border-radius: 18px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 2px solid rgba(0,255,255,0.25);

  box-shadow:
    0 0 25px rgba(0,255,255,0.45),
    inset 0 0 15px rgba(0,255,255,0.15),
    0 25px 50px rgba(0,0,0,0.6);

  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;

  transition: all 0.3s ease;
  z-index: 9998;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-item {
  padding: 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.05);
  color: #fff;

  text-align: center;
  text-decoration: none;
  font-weight: 500;

  border: 1px solid rgba(0,255,255,0.2);
}

  .menu-item.active {
    background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
    color: #fff;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}