.flex {
  display: flex;
  align-items: center;
}

.navbar {
  height: 70px;
  width: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
}

.navbar .logo {
  line-height: 70px;
  color: #ffffff;
  text-align: center;
}

.navbar .navbar-right {
  display: flex;
  align-items: center;
}

.navbar .navbar-right .active a {
  color: #c70c1f !important;
}

.navbar .navbar-right .right-item {
  text-align: center;
  transition: all .5s;
}

.navbar .navbar-right .right-item:hover {
  transform: translateY(-70px);
  transition: transform .5s;
}

.navbar .navbar-right .right-item:hover a {
  color: #c70c1f;
}

.navbar .navbar-right .right-item a {
  display: block;
  text-decoration: none;
  line-height: 70px;
  color: #fff;
}

/* ===== Mobile Navigation ===== */
.navbar-mobile {
  position: relative;
  z-index: 999;
}

.m-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: #000;
}

.m-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Hamburger button */
.m-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.m-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.m-hamburger span:nth-child(1) { margin-bottom: 5px; }
.m-hamburger span:nth-child(3) { margin-top: 5px; }

.m-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.m-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.m-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen overlay */
.m-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.m-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-in nav panel */
.m-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.m-overlay.active .m-nav {
  transform: translateX(0);
}

.m-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-nav-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 1px;
}

.m-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.m-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.m-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  flex: 1;
}

.m-nav-list li a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.m-nav-list li.active a {
  background: rgba(255, 255, 255, 0.06);
  color: #7fff00;
  border-left-color: #7fff00;
}

.m-nav-list li a:hover,
.m-nav-list li a:active {
  background: rgba(255, 255, 255, 0.06);
  color: #7fff00;
  border-left-color: #7fff00;
}

.m-nav-icon {
  width: 28px;
  font-size: 16px;
  text-align: center;
  margin-right: 12px;
  opacity: 0.7;
}

/* Mobile navbar responsive */
@media screen and (max-width: 767px) {
  .m-nav {
    width: 80%;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .navbar .navbar-right .right-item a {
    font-size: 13px;
    padding: 0 2px;
  }
  .navbar .logo {
    font-size: 16px;
  }
}
