.mobile-menu-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 998;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -280px;
  width: min(66vw, 248px);
  height: 100vh;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12);
  padding: 22px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: right 0.28s ease;
  z-index: 999;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.mobile-menu-header span {
  width: 100%;
  text-align: center;
  color: #1d4ed8;
}

.mobile-menu-close {
  border: none;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 4px;
}

.mobile-menu-link {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 600;
  background: #eff6ff;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  color: #ffffff;
  background: #2563eb;
}

.mobile-menu-auth {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-auth a {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu-login {
  border: 1px solid #dbe3f1;
  color: #1f2937;
  background: #ffffff;
}

.mobile-menu-register {
  border: 1px solid transparent;
  color: #ffffff;
  background: #2563eb;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
  right: 0;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}
