/* ==========================================
   NAVBAR STYLING - MAMANGGS (CYBER VOLT)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(9, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  padding: 12px 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-video-wrap {
  width: 140px;
  height: 38px;
  display: flex;
  align-items: center;
}

.logo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav Actions Desktop */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-login {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-nav-register {
  background: #ccff00;
  color: #000000;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-nav-register:hover {
  background: #b8e600;
  transform: translateY(-1px);
}

/* User Capsule */
.user-nav-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 4px 6px 4px 5px;
  gap: 8px;
}

/* Mobile Toggle */
.mobile-only {
  display: none;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
}

/* Tombol Mobile Icon Baru (Garis Tiga / Hamburger) */
.btn-mobile-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-mobile-icon:hover {
  background: rgba(204, 255, 0, 0.1) !important;
  border-color: rgba(204, 255, 0, 0.3) !important;
  color: #ccff00 !important;
}

/* ==========================================
   DROPDOWN MENU MOBILE (SATU KOTAK SOLID)
   ========================================== */
#mobileMenuDropdown {
  display: none;
  position: fixed;
  top: 68px;
  right: 14px;
  width: 250px;
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  flex-direction: column;
  gap: 6px;
}

#mobileMenuDropdown.show {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #8e9bb0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.mobile-menu-header i {
  cursor: pointer;
  font-size: 1rem;
  color: #94a3b8;
  padding: 4px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: rgba(204, 255, 0, 0.08);
  color: #ccff00;
}

#mobileAuthSlot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
}

/* Sembunyikan elemen desktop di HP */
@media (max-width: 768px) {
  .desktop-only,
  .nav-actions.desktop-only,
  #desktopNavActions {
    display: none !important;
  }
  .mobile-only {
    display: flex;
  }

  /* ==========================================
     PERBAIKAN TOTAL MOBILE MENU DROPDOWN
     ========================================== */
  #mobileMenuDropdown.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 72px;
    right: 16px;
    width: 250px;
    background: #0d111a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  #mobileMenuDropdown.show {
    display: flex !important;
  }

  .mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
  }

  #btnCloseMobileMenu {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
  }

  .mobile-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: none !important;
    transition: all 0.2s ease !important;
  }

  .mobile-menu-link:hover {
    background: rgba(204, 255, 0, 0.08) !important;
    color: #ccff00 !important;
  }

  #mobileAuthSlot {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}