/* ======================
   MENU CARD (CONTAINER)
====================== */
.menu-card {
  position: fixed;
  top: 14px;
  left: 14px;

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

  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(124,58,237,0.25);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.03);

  z-index: 2000;

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

/* ======================
   MENU BUTTON (ICON)
====================== */
.menu-btn {
  width: 36px;
  height: 28px;

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

  cursor: pointer;
}

.menu-btn span {
  height: 3px;
  width: 100%;
  background: #e5e7eb;
  border-radius: 4px;

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

/* BURGER → X */
.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

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

.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* SHIFT CARD WHEN MENU OPEN */
.menu-open .menu-card {
  transform: translateX(265px);
}

/* ======================
   BACKDROP
====================== */
.menu-backdrop {
  position: fixed;
  inset: 0;

  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 1000;
}

.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ======================
   SIDE MENU
====================== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;

  height: 100vh;
  width: 260px;

  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(14px);

  padding: 24px;
  border-right: 1px solid rgba(124,58,237,0.25);

  transform: translateX(-100%);
  transition: transform 0.35s ease;

  z-index: 1002;
  box-shadow: 20px 0 60px rgba(0,0,0,0.6);
}

.menu-open .side-menu {
  transform: translateX(0);
}

/* ======================
   MENU CONTENT
====================== */
.side-menu h3 {
  margin: 0 0 24px;
  font-size: 20px;
  letter-spacing: 1px;
  color: #22d3ee;
}

.menu-group {
  margin-bottom: 20px;
}

.menu-title {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 10px;
}

.side-menu a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  transition: color 0.2s ease;
}

.side-menu a:hover {
  color: #22d3ee;
}

/* ======================
   GLOBAL FOCUS FIX
====================== */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
button:focus,
button:active {
  outline: none;
  box-shadow: none;
}

.menu-btn:focus,
.menu-btn:focus-visible,
.menu-btn:active {
  outline: none !important;
  box-shadow: none !important;
}