/* Off-Canvas Menu - Modern & Attractive Design */

.off-canvas-wrap {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  max-width: 90vw;
  height: 100%;
  background-color: var(--color-site, #1a0a3c);
  z-index: 1000;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.off-canvas-wrap.active {
  right: 0;
}

/* Overlay Mask */
.of-site-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 10, 60, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.of-site-mask.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button */
.close-off-canvas-wrap {
  padding: 7px 18px;
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.close-off-canvas-wrap a {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.close-off-canvas-wrap a:hover {
  background: rgba(212, 163, 83, 0.16);
  border-color: rgba(212, 163, 83, 0.38);
  color: #d4a353;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 25px rgba(212, 163, 83, 0.22);
}

/* Logo Section */
.off-canvas-logo {
  padding: 8px 8px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.off-canvas-logo img {
  max-height: 70px;
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(212, 163, 83, 0.22));
  transition: all 0.3s ease;
}

.off-canvas-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 30px rgba(212, 163, 83, 0.32));
}

/* Off-Canvas Inner */
.off-canvas-inner {
  flex: 1;
  /* overflow-y: auto; */
  padding: 8px 20px 32px;
  position: relative;
  z-index: 1;
}

/* Scrollbar Customization */
.off-canvas-inner::-webkit-scrollbar {
  width: 5px;
}

.off-canvas-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.off-canvas-inner::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 83, 0.55);
  border-radius: 10px;
}

.off-canvas-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 83, 0.72);
}

/* Mobile Menu */
.mobile-menu-wrap {
  padding: 0;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu li {
  margin: 0;
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
  transform: translateX(30px);
}

.mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.mobile-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: rgba(212, 163, 83, 0.14);
  transition: width 0.5s ease;
}

.mobile-menu li a i {
  font-size: 20px;
  color: #94a3b8;
  width: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

    .mobile-menu li a span {
        flex: 1;
        position: relative;
        z-index: 1;
        color: white;
    }

.mobile-menu li a:hover {
  background: rgba(212, 163, 83, 0.14);
  border-color: rgba(212, 163, 83, 0.32);
  color: #fff;
  transform: translateX(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.mobile-menu li a:hover::before {
  width: 100%;
}

.mobile-menu li a:hover i {
  color: #d4a353;
  transform: scale(1.15);
}

.mobile-menu li.current-menu-item a {
  background: rgba(212, 163, 83, 0.16);
  border-color: rgba(212, 163, 83, 0.38);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.26);
}

.mobile-menu li.current-menu-item a i {
  color: #d4a353;
}

.mobile-menu li.current-menu-item a::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 50%;
  background: #d4a353;
  border-radius: 3px;
}

/* Responsive - Full Screen on Mobile */
@media (max-width: 480px) {
  .off-canvas-wrap {
    width: 100%;
    max-width: 100%;
  }

  .off-canvas-logo {
    padding: 5px 5px;
  }

  .off-canvas-logo img {
    max-height: 80px;
  }

  .off-canvas-inner {
    padding: 12px 24px 40px;
  }

  .mobile-menu {
    gap: 16px;
  }

  .mobile-menu li a {
    padding: 20px 24px;
    font-size: 16px;
  }

  .mobile-menu li a i {
    font-size: 22px;
  }
}

.agf-mobile-drawer.off-canvas-wrap {
  top: 50%;
  right: auto;
  left: 50%;
  width: min(420px, calc(100vw - 24px));
  max-width: 92vw;
  height: auto;
  max-height: calc(100vh - 140px);
  border-radius: 28px;
  background-color: var(--color-site, #1a0a3c);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
}

.agf-mobile-drawer__top.close-off-canvas-wrap {
  padding: 14px 18px 10px;
}

.agf-mobile-drawer__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agf-mobile-drawer__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agf-mobile-drawer__title-main {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agf-mobile-drawer__title-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agf-mobile-drawer .off-canvas-inner {
  overflow-y: auto;
  padding: 10px 20px 18px;
}

.agf-mobile-drawer.off-canvas-wrap.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.mobile-js-menu .agf-mobile-drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.mobile-js-menu .agf-mobile-mask {
  opacity: 1;
  visibility: visible;
}

.agf-mobile-drawer__bottom {
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 10, 60, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.agf-mobile-drawer__bottom-item {
  flex: 1;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agf-mobile-drawer__bottom-item i {
  font-size: 18px;
  color: #d4a353;
}

.agf-mobile-drawer__bottom-item span {
  font-size: 12px;
  font-weight: 600;
}

.agf-mobile-drawer__bottom-item:hover {
  background: rgba(212, 163, 83, 0.14);
  border-color: rgba(212, 163, 83, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.agf-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 998;
  width: min(440px, calc(100vw - 24px));
  padding: 6px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 4px;
  background-color: var(--color-site, #1a0a3c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 18px 45px rgba(4, 12, 28, 0.28);
}

.agf-bottom-nav__item {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
  padding: 7px 4px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agf-bottom-nav__item i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
  transition: all 0.3s ease;
}

.agf-bottom-nav__item span {
  font-size: 9px;
  font-weight: 500;
}

.agf-bottom-nav__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.agf-bottom-nav__item:hover i {
  color: rgba(255, 255, 255, 0.9);
}

.agf-bottom-nav__item.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.agf-bottom-nav__item.is-active i {
  color: rgba(255, 255, 255, 0.92);
}

.agf-bottom-nav__item--menu {
  background: transparent;
  border-color: transparent;
}

.agf-bottom-nav__fab {
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.agf-bottom-nav__fab i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.agf-bottom-nav__item--menu:hover {
  transform: none;
}

.agf-bottom-nav__item--menu:hover .agf-bottom-nav__fab {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 768px) {

  .agf-bottom-nav {
    display: grid;
  }
}

@media (max-width: 420px) {
  .agf-bottom-nav {
    width: min(400px, calc(100vw - 16px));
    padding: 6px;
    border-radius: 15px;
  }

  .agf-bottom-nav__item {
    min-height: 50px;
    padding: 7px 2px;
  }

  .agf-bottom-nav__item span {
    font-size: 9px;
  }
}
