/* =====================================================
   GLOBAL SAFETY
===================================================== */
body {
  overflow-x: hidden;
}

/* =====================================================
   Z-INDEX LAYER MAP (DO NOT CHANGE)
   -----------------------------------------------------
   99999  → Burger icon (always on top)
   90000  → Menu overlay
   85000  → Side menu
===================================================== */

/* =====================================================
   BURGER ICON (ALWAYS ON TOP)
===================================================== */
.burger {
  position: fixed;
  top: 18px;
  left: 18px;

  width: 28px;
  height: 22px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;

  z-index: 99999; /* 🔥 ABOVE EVERYTHING */
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;

  background: #ffffff;
  border-radius: 3px;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X */
.burger.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Hide burger when menu is open */
body.menu-open .burger {
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   MENU OVERLAY
===================================================== */
#menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 999;
}

body.menu-open #menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   SIDE MENU (OFF-CANVAS)
===================================================== */
#side-menu {
  position: fixed;
  top: 0;
  left: -260px;

  width: 260px;
  height: 100vh;

  background: #0d1020;

  transition: left 0.3s ease;

  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45);
  overflow-y: auto;

  z-index: 1000;
}

#side-menu.open {
  left: 0;
}

/* =====================================================
   MENU HEADER
===================================================== */
.menu-header {
  position: sticky;
  top: 0;

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

  padding: 18px 16px;

  background: #0d1020;
  border-bottom: 1px solid #1e2340;

  z-index: 2;
}

.menu-header span {
  font-size: 14px;
  font-weight: 700;
  color: #00ff9d;
}

#menu-close {
  background: none;
  border: none;

  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

/* =====================================================
   MENU LINKS
===================================================== */
.menu-links {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.menu-links li {
  padding: 12px 20px;
}

.menu-links li a {
  display: block;

  color: #ffffff;
  font-size: 14px;
  text-decoration: none;

  transition: color 0.2s ease;
}

.menu-links li a:hover {
  color: #00ff9d;
}

/* Active page */
.menu-links li.active a {
  color: #00ff9d;
  font-weight: 700;
}

/* Divider */
.menu-links .divider {
  height: 1px;
  background: #222;
  margin: 14px 0;
  padding: 0;
}

/* =====================================================
   WALLET DISPLAY
===================================================== */
#wallet-display {
  background: rgba(0, 255, 157, 0.08);
  border-radius: 8px;
  font-size: 12px;
}

#wallet-address {
  display: block;
  margin-top: 4px;

  font-family: monospace;
  font-size: 13px;
  color: #00ff9d;
}

/* =====================================================
   LOGOUT BUTTON
===================================================== */
#logout-item a {
  display: block;
  padding: 10px 14px;

  border-radius: 8px;

  color: #ff6b6b;
  font-weight: 600;

  background: rgba(255, 107, 107, 0.08);
}

#logout-item a:hover {
  background: rgba(255, 107, 107, 0.16);
  color: #ff3b3b;
}

/* =====================================================
   UTILITIES
===================================================== */
.hidden {
  display: none;
}

/* =====================================================
   LOCK SCROLL WHEN MENU OPEN
===================================================== */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* =========================
   Wallet Identity Block
========================= */

#wallet-display {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

#wallet-address {
  font-size: 14px;
  letter-spacing: 0.5px;
}

#wallet-user-name {
  font-size: 14px;
  font-weight: 800;
  margin-top: 8px;
  color: #00ff9d;
}

#wallet-team-name {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 600;
}

/* subtle divider spacing */
.menu-links #wallet-display {
  margin-bottom: 8px;
}