/* =====================================================
   GLOBAL VERTICAL NAV BAR + HAMBURGER
   assets/css/core/global-vnbar.css
   STABLE — USED BY ALL PAGES
===================================================== */

/* =====================================================
   VERTICAL NAV BASE
===================================================== */
.verticalnav {
  position: fixed;
  top: 150px;
  left: -300px;
  width: 280px;
  height: auto;
  max-height: calc(100vh - 170px);
  background-color: var(--vnbar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  transition: left 0.3s ease-in-out;
  z-index: 99999;
  isolation: isolate;
}

/* OPEN STATE */
.verticalnav.show {
  left: 0;
  width: 610px;
  max-width: 610px;
}


/* =========================
   VN BAR — AUTH LINKS
========================= */
.verticalnav .auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.verticalnav .auth-links a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover (soft, professional) */
.verticalnav .auth-links a:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

/* =========================
   VN BAR — WELCOME TEXT
========================= */
.verticalnav .welcoming-text {
  margin-top: 10px;
}

.verticalnav .welcoming-text h1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  text-align: center;
}

.verticalnav .welcoming-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* =====================================================
   MAIN MENU ENGINE — ACCOUNT AREAS
===================================================== */
.main-menu {
  position: relative;
  width: 100%;
}

/* =====================================================
   ACCOUNT AREA SECTIONS
===================================================== */
.verticalnav .account-area {
  margin-top: 18px;
}

.verticalnav .account-area-heading {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: default;
  box-sizing: border-box;
}

.verticalnav .account-area-heading span {
  font-weight: 700;
}

.verticalnav .account-area-description {
  margin: 8px 4px 18px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  box-sizing: border-box;
}

/* =====================================================
   OVERLAY
===================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-dark);
  display: none;
  z-index: 90000;
  /* chini ya VN bar */
}

.overlay.active {
  display: block;
}

/* =====================================================
   HAMBURGER (GLOBAL — STABLE)
===================================================== */
.hamburger {
  position: fixed;
  top: 107px;
  left: 7px;
  z-index: 10500;
  cursor: pointer;
  background-color: var(--black);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: var(--white);
  box-shadow: var(--shadow-nav);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hamburger i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ACTIVE STATE */
.hamburger.active i {
  transform: rotate(180deg);
  opacity: 0;
}

.hamburger.active::after {
  content: "✖";
  position: absolute;
  font-size: 26px;
  color: var(--white);
  opacity: 1;
  animation: fadeInX 0.3s forwards;
}

/* X animation */
@keyframes fadeInX {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 600px) {
  .hamburger {
    top: 70px;
    left: 10px;
    width: 42px;
    height: 42px;
  }

  .verticalnav.show {
    width: 100%;
    max-width: 100%;
  }
}

/* =====================================================
   RESPONSIVE SAFETY (DESKTOP)
===================================================== */
@media (min-width: 768px),
(min-width: 1200px) {
  .verticalnav.show {
    width: 610px;
    max-width: 610px;
  }
}

/* =====================================================
   SAFETY — AVOID GHOST CUTS
===================================================== */
.verticalnav * {
  box-sizing: border-box;
}