:root {
  --gmg-accent: var(--gmg-main-secondary, #00f0ff);
  --gmg-accent2: #bf00ff;
  --gmg-border: var(--gmg-main-border, rgba(255, 255, 255, 0.08));
  --gmg-text-muted: #94a3b8;
  --gmg-text-primary: var(--gmg-main-text, #f8fafc);
  --gmg-danger: #ff2e63;
  --gmg-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gmg-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


.gmg-vertical-sidebar {
  width: 80px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 999;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--gmg-main-bg, linear-gradient(180deg, rgba(10, 14, 26, 0.94), rgba(6, 8, 16, 0.97)));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid var(--gmg-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  animation: gmgVhSlideIn 0.8s var(--gmg-ease-out) both;
}


.gmg-vertical-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--gmg-accent), var(--gmg-accent2), transparent);
  background-size: 100% 300%;
  animation: gmgVhEdge 6s linear infinite;
  pointer-events: none;
}

.gmg-vertical-sidebar > *:not(.gmg-scanline) {
  position: relative;
  z-index: 1;
}


.gmg-scanline {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px);
}

.gmg-scanline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--gmg-accent) 12%, transparent), transparent);
  animation: gmgVhScan 6s linear infinite;
}


.gmg-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.4s var(--gmg-ease-out);
}

.gmg-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--gmg-accent) 30%, transparent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.gmg-logo img {
  position: relative;
  z-index: 2;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gmg-accent) 50%, transparent));
  transition: transform 0.4s var(--gmg-ease-out), filter 0.4s ease;
}

.gmg-logo:hover { transform: translateY(-2px); }

.gmg-logo:hover::after {
  border-color: var(--gmg-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--gmg-accent) 40%, transparent);
}

.gmg-logo:hover img {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 14px var(--gmg-accent));
}

.gmg-logo-glow {
  position: absolute;
  inset: -8px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gmg-accent) 35%, transparent), transparent 70%);
  animation: gmgVhGlowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.gmg-logo-text span {
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gmg-accent), var(--gmg-accent2), var(--gmg-accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gmgVhGradientShift 5s ease infinite;
}


.gmg-user-profile { margin-bottom: 28px; position: relative; }

.gmg-user-profile .gmg-avatar img{
  border-radius: 50%;
}
.gmg-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gmg-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--gmg-accent) 35%, transparent);
  transition: transform 0.35s var(--gmg-ease-out), box-shadow 0.35s ease;
}


.gmg-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--gmg-accent), var(--gmg-accent2), transparent 60%, var(--gmg-accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: gmgVhSpin 5s linear infinite;
  pointer-events: none;
}

.gmg-avatar:hover { transform: scale(1.08); box-shadow: 0 0 22px var(--gmg-accent); }

.gmg-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.gmg-status-dot {
  position: absolute;
  bottom: 1px;
  left: 1px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0b0f19;
}

.gmg-status-dot.online::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #10b981;
  z-index: -1;
  animation: gmgVhPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.gmg-status-dot.guest { background: #64748b; }


.gmg-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
  padding: 0 10px;
  box-sizing: border-box;
}
.gmg-vertical-sidebar  {
      text-align: center;
}
.gmg-vertical-sidebar .gmg-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 6px;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--gmg-text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: gmgVhRise 0.6s var(--gmg-ease-out) both;
  animation-delay: calc(var(--gmg-i, 0) * 70ms + 150ms);
}


.gmg-vertical-sidebar .gmg-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--gmg-ease-out);
  pointer-events: none;
}

.gmg-vertical-sidebar .gmg-nav-item > *:not(.gmg-active-bar) {
  position: relative;
  z-index: 1;
}

.gmg-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.15rem;
  transition: transform 0.35s var(--gmg-ease-spring), color 0.3s ease, filter 0.3s ease;
}

.gmg-vertical-sidebar .gmg-nav-item:hover {
  color: var(--gmg-text-primary);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gmg-accent) 12%, transparent),
    color-mix(in srgb, var(--gmg-accent2) 10%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gmg-accent) 22%, transparent);
}

.gmg-vertical-sidebar .gmg-nav-item:hover::after { transform: translateX(120%); }

.gmg-vertical-sidebar .gmg-nav-item:hover .gmg-nav-icon {
  transform: translateY(-3px) scale(1.12);
  color: var(--gmg-accent);
  filter: drop-shadow(0 0 6px var(--gmg-accent));
}

.gmg-vertical-sidebar .gmg-nav-item:focus-visible {
  outline: 2px solid var(--gmg-accent);
  outline-offset: 2px;
}

.gmg-nav-item.active {
  color: var(--gmg-accent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gmg-accent) 18%, transparent),
    color-mix(in srgb, var(--gmg-accent2) 8%, transparent));
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--gmg-accent) 10%, transparent);
}

.gmg-nav-item.active .gmg-nav-icon {
  color: var(--gmg-accent);
  filter: drop-shadow(0 0 8px var(--gmg-accent));
  animation: gmgVhIconPulse 2.6s ease-in-out infinite;
}


.gmg-nav-item.active::before,
.gmg-active-bar {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: var(--gmg-accent);
  box-shadow: 0 0 10px var(--gmg-accent);
  transform: translateY(-50%);
  animation: gmgVhBar 0.5s var(--gmg-ease-out) both;
}

.gmg-nav-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 10px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--gmg-accent2), var(--gmg-danger));
  box-shadow: 0 0 10px color-mix(in srgb, var(--gmg-accent2) 60%, transparent);
  animation: gmgVhBadgePop 0.5s var(--gmg-ease-spring) both;
}


.gmg-woo-actions,
.gmg-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 10px 0;
  box-sizing: border-box;
  border-top: 1px solid var(--gmg-border);
}

.gmg-cart-badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--gmg-danger), #ff007f);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.45s var(--gmg-ease-spring), opacity 0.3s ease;
}

.gmg-cart-badge.has-items {
  transform: scale(1);
  opacity: 1;
  animation: gmgVhBadgePulse 2.4s ease-in-out infinite;
}

.gmg-cart-btn:hover .gmg-nav-icon { animation: gmgVhWiggle 0.6s ease; }


.gmg-sidebar-footer a[href*="action=logout"]:hover {
  color: var(--gmg-danger);
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.14), rgba(255, 46, 99, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 46, 99, 0.3);
}


.gmg-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(3, 5, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gmg-drawer-overlay.active { opacity: 1; visibility: visible; }

.gmg-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 80px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 80px);
  box-sizing: border-box;
  background: var(--gmg-main-bg, rgba(8, 12, 22, 0.96));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-left: 1px solid var(--gmg-border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(calc(100% + 140px));
  visibility: hidden;
  transition: transform 0.55s var(--gmg-ease-out), visibility 0.55s;
}

.gmg-drawer.active { transform: translateX(0); visibility: visible; }

.gmg-drawer-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
}

.gmg-drawer-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gmg-accent), transparent);
  opacity: 0.5;
}

.gmg-drawer-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gmg-text-primary);
}

.gmg-drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gmg-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.4s var(--gmg-ease-spring), color 0.3s ease, border-color 0.3s ease;
}

.gmg-drawer-close:hover {
  transform: rotate(90deg);
  color: var(--gmg-accent);
  border-color: var(--gmg-accent);
}

.gmg-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 28px;
}


.gmg-drawer.active .gmg-drawer-body > * {
  animation: gmgVhRise 0.5s var(--gmg-ease-out) both;
  animation-delay: calc(var(--gmg-i, 0) * 60ms + 120ms);
}

.gmg-drawer-body > *:nth-child(1) { --gmg-i: 0; }
.gmg-drawer-body > *:nth-child(2) { --gmg-i: 1; }
.gmg-drawer-body > *:nth-child(3) { --gmg-i: 2; }
.gmg-drawer-body > *:nth-child(4) { --gmg-i: 3; }
.gmg-drawer-body > *:nth-child(n + 5) { --gmg-i: 4; }


.gmg-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gmg-border);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--gmg-ease-out);
}

.gmg-cart-item:hover {
  border-color: color-mix(in srgb, var(--gmg-accent) 35%, transparent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-3px);
}

.gmg-cart-item-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gmg-border);
  transition: transform 0.4s var(--gmg-ease-out);
}

.gmg-cart-item:hover .gmg-cart-item-thumb img { transform: scale(1.06); }

.gmg-cart-item-info { flex: 1; min-width: 0; }

.gmg-cart-item-info h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--gmg-text-primary);
}

.gmg-cart-item-info h4 a { color: inherit; text-decoration: none; }
.gmg-cart-item-info h4 a:hover { color: var(--gmg-accent); }

.gmg-cart-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gmg-text-muted);
}

.gmg-cart-price { color: var(--gmg-accent); font-weight: 700; }

.gmg-cart-item-remove {
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #64748b;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--gmg-ease-spring);
}

.gmg-cart-item-remove:hover {
  color: var(--gmg-danger);
  background: rgba(255, 46, 99, 0.1);
  transform: scale(1.12);
}

.gmg-cart-item-remove:disabled { opacity: 0.6; cursor: wait; }

.gmg-cart-totals {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gmg-accent) 8%, transparent),
    color-mix(in srgb, var(--gmg-accent2) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--gmg-accent) 20%, transparent);
}

.gmg-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gmg-text-muted);
}

.gmg-cart-total-row strong {
  font-size: 1.05rem;
  color: var(--gmg-accent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--gmg-accent) 40%, transparent);
}

.gmg-cart-actions { display: grid; gap: 10px; margin-top: 14px; }


.gmg-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s var(--gmg-ease-out), box-shadow 0.3s ease, background 0.3s ease;
}

.gmg-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--gmg-ease-out);
  pointer-events: none;
}

.gmg-btn:hover::after { transform: translateX(120%); }
.gmg-btn:hover { transform: translateY(-2px); }

.gmg-btn-primary {
  color: #05070d;
  background: linear-gradient(135deg, var(--gmg-accent), var(--gmg-accent2));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--gmg-accent) 25%, transparent);
}

.gmg-btn-primary:hover {
  box-shadow: 0 12px 32px color-mix(in srgb, var(--gmg-accent) 45%, transparent);
}

.gmg-btn-outline {
  color: var(--gmg-accent);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gmg-accent) 45%, transparent);
}

.gmg-btn-outline:hover {
  background: color-mix(in srgb, var(--gmg-accent) 10%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--gmg-accent) 25%, transparent);
}


.gmg-empty-cart,
.gmg-account-guest {
  padding: 40px 10px;
  text-align: center;
  color: var(--gmg-text-muted);
}

.gmg-empty-cart > i,
.gmg-account-guest > i {
  display: inline-block;
  font-size: 3rem;
  color: var(--gmg-accent);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gmg-accent) 50%, transparent));
  animation: gmgVhFloat 3s ease-in-out infinite;
}

.gmg-empty-cart p { margin: 16px 0 20px; }


.gmg-account-profile {
  padding: 16px 0 20px;
  margin-bottom: 12px;
  text-align: center;
  border-bottom: 1px solid var(--gmg-border);
}

.gmg-account-avatar {
  width: 3rem;
    height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--gmg-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--gmg-accent) 35%, transparent);
  transition: transform 0.4s var(--gmg-ease-spring);
}

.gmg-account-profile:hover .gmg-account-avatar { transform: scale(1.05); }

.gmg-account-profile h4 { margin: 12px 0 4px; color: var(--gmg-text-primary); }

.gmg-account-profile p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gmg-text-muted);
  word-break: break-all;
}

.gmg-account-menu { display: flex; flex-direction: column; gap: 6px; }

.gmg-account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--gmg-ease-out);
}

.gmg-account-menu-item > i {
  width: 20px;
  text-align: center;
  color: var(--gmg-accent);
  transition: transform 0.35s var(--gmg-ease-spring);
}

.gmg-account-menu-item:hover {
  color: var(--gmg-text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: color-mix(in srgb, var(--gmg-accent) 25%, transparent);
  transform: translateX(-4px);
}

.gmg-account-menu-item:hover > i { transform: scale(1.15); }

.gmg-account-menu-item.gmg-logout { margin-top: 10px; color: #ff5d7a; }
.gmg-account-menu-item.gmg-logout > i { color: #ff5d7a; }

.gmg-account-menu-item.gmg-logout:hover {
  color: var(--gmg-danger);
  background: rgba(255, 46, 99, 0.08);
  border-color: rgba(255, 46, 99, 0.3);
}


@keyframes gmgVhSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes gmgVhRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gmgVhScan { to { top: 100%; } }
@keyframes gmgVhEdge { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes gmgVhGlowPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0.9; } }
@keyframes gmgVhSpin { to { transform: rotate(360deg); } }
@keyframes gmgVhPing { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes gmgVhIconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes gmgVhBar { from { transform: translateY(-50%) scaleY(0); } to { transform: translateY(-50%) scaleY(1); } }
@keyframes gmgVhBadgePop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes gmgVhBadgePulse { 0%, 100% { box-shadow: 0 0 8px rgba(255, 46, 99, 0.6); } 50% { box-shadow: 0 0 16px rgba(255, 46, 99, 0.95); } }
@keyframes gmgVhWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes gmgVhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gmgVhGradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }


@media (prefers-reduced-motion: reduce) {
  .gmg-vertical-sidebar,
  .gmg-vertical-sidebar *,
  .gmg-drawer,
  .gmg-drawer * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.gmg-vertical-sidebar {
  overflow: visible;
}

.gmg-vertical-sidebar > .gmg-nav-menu {
  overflow: visible;
  z-index: 10;
}

.gmg-vertical-sidebar .gmg-vmenu,
.gmg-vertical-sidebar .gmg-vmenu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
}

.gmg-vertical-sidebar .gmg-vmenu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.gmg-vertical-sidebar .gmg-vmenu li {
  position: relative;
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: visible;
}

.gmg-vertical-sidebar .gmg-vmenu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  color: var(--gmg-text-muted, #94a3b8);
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.7;
  flex-direction: column;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}

.gmg-vertical-sidebar .gmg-vmenu > li > a {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 6px;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}

.gmg-vertical-sidebar .gmg-vmenu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 1.15rem;
}

.gmg-vertical-sidebar .gmg-vmenu-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gmg-vertical-sidebar .gmg-vmenu a:hover,
.gmg-vertical-sidebar .gmg-vmenu .is-submenu-open > a,
.gmg-vertical-sidebar .gmg-vmenu .current-menu-item > a,
.gmg-vertical-sidebar .gmg-vmenu .current-menu-ancestor > a {
  color: var(--gmg-accent, #00f0ff);
  background: color-mix(
    in srgb,
    var(--gmg-accent, #00f0ff) 12%,
    transparent
  );
}


.gmg-vertical-sidebar .gmg-vmenu .sub-menu {
  position: absolute;
  inset: auto;
  top: 0;
  right: 100%;
  left: auto;
  z-index: 100;
  display: none;
  width: 240px;
  padding: 8px;
  text-align: right;
  border: 1px solid var(--gmg-border, rgba(255,255,255,.1));
  border-radius: 14px;
  background: var(--gmg-sidebar-bg, rgba(8,12,22,.98));
  box-shadow: -12px 12px 36px rgba(0,0,0,.35);
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}


.gmg-vertical-sidebar .gmg-vmenu li.is-submenu-open > .sub-menu {
  display: block;
}

.gmg-vertical-sidebar .gmg-vmenu .sub-menu a {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 12px;
  font-size: .85rem;
  font-weight: 500;
  text-align: right;
}

.gmg-vertical-sidebar .gmg-vmenu .sub-menu .gmg-vmenu-icon {
  width: 20px;
  height: 20px;
  font-size: .95rem;
}

.gmg-vertical-sidebar .gmg-vmenu .sub-menu .menu-item-has-children > a {
  padding-left: 44px;
}


.gmg-vertical-sidebar .gmg-submenu-toggle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: var(--gmg-accent, #00f0ff);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gmg-vertical-sidebar .sub-menu .gmg-submenu-toggle {
  top: 4px;
  left: 4px;
  width: 34px;
  height: 36px;
}

.gmg-vertical-sidebar .gmg-submenu-toggle:hover {
  background: rgba(255,255,255,.12);
}

.gmg-vertical-sidebar .gmg-submenu-toggle[aria-expanded="true"] > span {
  transform: rotate(180deg);
}

.gmg-vertical-sidebar .gmg-vmenu a:focus-visible,
.gmg-vertical-sidebar .gmg-submenu-toggle:focus-visible {
  outline: 2px solid var(--gmg-accent, #00f0ff);
  outline-offset: 2px;
}


@media (max-width: 767px) {
  .gmg-vertical-sidebar .gmg-vmenu > li > .sub-menu {
    width: min(240px, calc(100vw - 130px));
  }

  .gmg-vertical-sidebar .gmg-vmenu .sub-menu .sub-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 4px;
    box-shadow: none;
    background: rgba(255,255,255,.035);
  }
}
.gmg-vertical-sidebar .gmg-megamenu-panel {
  right: 0;
    left: 0;
    transform: translateX(-4rem) translateY(-5rem)!important  ;
}