/* HEADER MENU — CLEAN v3 */
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.menu-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #58cc02, #89e219);
  border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(88,204,2,0.3);
  transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.menu-btn:hover { transform: scale(1.08); }
.menu-btn:active { transform: scale(0.95); }
.menu-btn .line { width: 20px; height: 2.5px; background: white; border-radius: 999px; transition: all 0.3s; }
.menu-btn.active .line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-btn.active .line:nth-child(2) { opacity: 0; }
.menu-btn.active .line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.menu-drawer {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99998;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-drawer.open { pointer-events: auto; opacity: 1; }

.menu-drawer:not(#header-menu-drawer) { display: none !important; }
.menu-btn:not(#header-menu-btn) { display: none !important; }
.menu-drawer-content:not(#header-menu-drawer .menu-drawer-content) { display: none !important; }
.menu-drawer-item:not(#header-menu-drawer .menu-drawer-item) { display: none !important; }

.menu-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-drawer-content {
  position: absolute; top: 0; left: 0;
  width: 300px; max-width: 85vw; height: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 4px 0 32px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.menu-drawer.open .menu-drawer-content { transform: translateX(0); }

.menu-drawer-header {
  padding: 20px;
  background: linear-gradient(135deg, #58cc02, #89e219);
  color: white;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.menu-drawer-logo {
  width: 48px; height: 48px;
  background: white; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #58cc02;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.menu-drawer-info { flex: 1; min-width: 0; }
.menu-drawer-title {
  font-size: 16px; font-weight: 900; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.menu-drawer-subtitle {
  font-size: 11px; font-weight: 600; opacity: 0.9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.menu-drawer-list {
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}

.menu-drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: transparent; border: none;
  color: #1a1a1a;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.25s;
  text-align: left; width: 100%;
}
.menu-drawer-item:hover { background: rgba(88,204,2,0.08); transform: translateX(4px); }
.menu-drawer-item.active {
  background: linear-gradient(135deg, #58cc02, #89e219);
  color: white;
  box-shadow: 0 4px 16px rgba(88,204,2,0.3);
}
.menu-drawer-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(88,204,2,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.menu-drawer-item.active .menu-drawer-icon {
  background: rgba(255,255,255,0.25);
  color: white;
}
.menu-drawer-label { flex: 1; min-width: 0; }
.menu-drawer-text { font-size: 15px; font-weight: 800; display: block; }
.menu-drawer-badge {
  font-size: 10px; font-weight: 700; opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.3px; margin-top: 1px;
}
.menu-drawer-arrow {
  font-size: 16px; opacity: 0.4; transition: transform 0.25s;
}
.menu-drawer-item:hover .menu-drawer-arrow { transform: translateX(4px); opacity: 0.8; }

.menu-drawer-divider {
  height: 1px; background: rgba(0,0,0,0.06); margin: 8px 16px;
}

.menu-drawer-footer {
  padding: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.menu-drawer-footer-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #ff4b4b, #ea2b2b);
  color: white; border: none; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #b91c1c;
  transition: all 0.2s;
}
.menu-drawer-footer-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b91c1c;
}

.bottom-nav { display: none !important; }
body { padding-bottom: 20px !important; }
.theme-toggle { display: none !important; }
.header-stats { display: none !important; }

[data-theme="dark"] .menu-drawer-content { background: rgba(20,20,20,0.98); }
[data-theme="dark"] .menu-drawer-item { color: #e5e7eb; }
[data-theme="dark"] .menu-drawer-item:hover { background: rgba(88,204,2,0.15); }
[data-theme="dark"] .menu-drawer-icon { background: rgba(88,204,2,0.2); }
[data-theme="dark"] .menu-drawer-divider { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .menu-drawer-footer { border-top-color: rgba(255,255,255,0.08); }

@media (max-width: 480px) {
  .menu-drawer-content { width: 280px; }
  .menu-btn { width: 38px; height: 38px; }
  .menu-btn .line { width: 18px; }
}
