:root {
  --lg-hub-bg: rgba(9, 16, 31, .72);
  --lg-hub-bg-soft: rgba(255,255,255,.08);
  --lg-hub-bg-strong: rgba(255,255,255,.16);
  --lg-hub-line: rgba(255,255,255,.18);
  --lg-hub-text: #f7fbff;
  --lg-hub-muted: rgba(226,236,255,.70);
  --lg-hub-primary: #7ce7ff;
  --lg-hub-accent: #a78bfa;
  --lg-hub-pink: #ff8edb;
  --lg-hub-shadow: 0 18px 48px rgba(2, 8, 23, .26);
  --lg-hub-z-toggle: 14000;
  --lg-hub-z-backdrop: 14010;
  --lg-hub-z-panel: 14020;
}

body.light-layout,
html.light-style body {
  --lg-hub-bg: rgba(247, 251, 255, .74);
  --lg-hub-bg-soft: rgba(255,255,255,.62);
  --lg-hub-bg-strong: rgba(255,255,255,.86);
  --lg-hub-line: rgba(66, 86, 120, .14);
  --lg-hub-text: #132033;
  --lg-hub-muted: rgba(49, 68, 101, .68);
  --lg-hub-shadow: 0 16px 44px rgba(45, 73, 115, .14);
}

/* Keep the legacy menu in DOM as data source, but visually move it away. */
html body.lg-hub-mounted .main-menu,
html body.lg-hub-mounted .main-menu.menu-fixed,
html body.lg-hub-mounted .main-menu.menu-light,
html body.lg-hub-mounted .main-menu.menu-dark {
  transform: translateX(-112%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html body.lg-hub-mounted.vertical-layout.vertical-menu-modern .app-content,
html body.lg-hub-mounted.vertical-layout.vertical-menu-modern .footer,
html body.lg-hub-mounted.vertical-layout.vertical-menu-modern.menu-expanded .app-content,
html body.lg-hub-mounted.vertical-layout.vertical-menu-modern.menu-expanded .footer,
html body.lg-hub-mounted.vertical-layout.vertical-menu-modern.menu-collapsed .app-content,
html body.lg-hub-mounted.vertical-layout.vertical-menu-modern.menu-collapsed .footer,
html body.lg-hub-mounted .app-content,
html body.lg-hub-mounted .footer {
  margin-left: 0 !important;
}

html body.lg-hub-mounted .header-navbar.fixed-top,
html body.lg-hub-mounted .header-navbar.floating-nav {
  left: 0 !important;
}

.lg-hub,
.lg-hub * {
  box-sizing: border-box;
}

.lg-hub-toggle {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: var(--lg-hub-z-toggle);
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  min-height: 52px;
  padding: .58rem .92rem .58rem .58rem;
  border: 1px solid var(--lg-hub-line);
  border-radius: 999px;
  color: var(--lg-hub-text);
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.56), transparent 24%),
    linear-gradient(135deg, rgba(124,231,255,.28), rgba(167,139,250,.22) 46%, rgba(255,142,219,.16)),
    var(--lg-hub-bg);
  box-shadow: 0 10px 26px rgba(4, 12, 26, .16), inset 0 1px 0 rgba(255,255,255,.30);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lg-hub-toggle:hover,
.lg-hub-toggle:focus-visible {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(124,231,255,.44);
  box-shadow: 0 12px 30px rgba(4, 12, 26, .20), inset 0 1px 0 rgba(255,255,255,.40);
  outline: none;
}

.lg-hub-toggle-orb {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.92), rgba(255,255,255,.15) 26%, transparent 45%),
    linear-gradient(135deg, var(--lg-hub-primary), var(--lg-hub-accent));
  color: #08111f;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.65), 0 10px 24px rgba(124,231,255,.23);
}

.lg-hub-toggle-orb i {
  font-size: 1.35rem;
}

.lg-hub-toggle-text {
  font-weight: 800;
  letter-spacing: .01em;
}

.lg-hub-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--lg-hub-z-backdrop);
  background: radial-gradient(circle at 20% 10%, rgba(124,231,255,.18), transparent 32%), rgba(2, 8, 23, .38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.lg-hub-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: var(--lg-hub-z-panel);
  width: min(1140px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  transform: translate(-50%, -50%) scale(.985);
  opacity: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lg-hub-line);
  border-radius: 34px;
  color: var(--lg-hub-text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)),
    var(--lg-hub-bg);
  box-shadow: var(--lg-hub-shadow), inset 0 1px 0 rgba(255,255,255,.36);
  backdrop-filter: blur(10px) saturate(138%);
  -webkit-backdrop-filter: blur(10px) saturate(138%);
  transition: transform .22s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
}

.lg-hub-panel:not([hidden]) {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.lg-hub-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .75;
}

.lg-hub-glow-one {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(124,231,255,.28), transparent 68%);
}

.lg-hub-glow-two {
  width: 320px;
  height: 320px;
  left: -150px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255,142,219,.20), transparent 68%);
}

.lg-hub-header,
.lg-hub-toolbar,
.lg-hub-footer {
  position: relative;
  z-index: 1;
}

.lg-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.55rem 1rem;
  border-bottom: 1px solid var(--lg-hub-line);
}

.lg-hub-kicker {
  margin: 0 0 .2rem;
  color: var(--lg-hub-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lg-hub-title {
  margin: 0;
  color: var(--lg-hub-text);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -.04em;
}

.lg-hub-subtitle {
  margin: .25rem 0 0;
  color: var(--lg-hub-muted);
  font-weight: 600;
}

.lg-hub-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lg-hub-line);
  border-radius: 50%;
  color: var(--lg-hub-text);
  background: var(--lg-hub-bg-soft);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

.lg-hub-close:hover,
.lg-hub-close:focus-visible {
  transform: rotate(6deg) scale(1.04);
  background: var(--lg-hub-bg-strong);
  outline: none;
}

.lg-hub-close i {
  font-size: 1.55rem;
}

.lg-hub-toolbar {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.55rem;
  border-bottom: 1px solid var(--lg-hub-line);
}

.lg-hub-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .72rem;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--lg-hub-line);
  border-radius: 999px;
  background: var(--lg-hub-bg-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.lg-hub-search i {
  color: var(--lg-hub-primary);
  font-size: 1.25rem;
}

.lg-hub-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--lg-hub-text);
  background: transparent;
  font-weight: 700;
}

.lg-hub-search input::placeholder {
  color: var(--lg-hub-muted);
  font-weight: 600;
}

.lg-hub-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  padding: 0 .95rem;
  border: 1px solid var(--lg-hub-line);
  border-radius: 999px;
  color: var(--lg-hub-text);
  background: var(--lg-hub-bg-soft);
  font-weight: 850;
  cursor: pointer;
}

.lg-hub-filter[aria-pressed="true"] {
  border-color: rgba(255, 207, 92, .55);
  background: rgba(255, 207, 92, .16);
}

.lg-hub-sections {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.55rem 1.35rem;
  overflow: auto;
}


.lg-hub-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  color: var(--lg-hub-muted);
  font-weight: 850;
}

.lg-hub-loading i {
  color: var(--lg-hub-primary);
  font-size: 1.55rem;
}

.lg-hub-section + .lg-hub-section {
  margin-top: 1.25rem;
}

.lg-hub-section-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  color: var(--lg-hub-text);
  font-size: 1.15rem;
  font-weight: 1000;
  letter-spacing: .012em;
  line-height: 1.25;
}

.lg-hub-section-title::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lg-hub-primary), var(--lg-hub-accent));
  box-shadow: 0 0 18px rgba(124,231,255,.56);
}

.lg-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .82rem;
}

.lg-hub-card {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .95rem;
  padding: 1.05rem;
  border: 1px solid var(--lg-hub-line);
  border-radius: 24px;
  color: var(--lg-hub-text);
  text-decoration: none !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.26), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  box-shadow: 0 8px 18px rgba(3, 9, 21, .10), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
  contain: layout paint;
  content-visibility: auto;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lg-hub-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -54px auto;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,231,255,.20), transparent 68%);
  pointer-events: none;
}

.lg-hub-card:hover,
.lg-hub-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(124,231,255,.46);
  color: var(--lg-hub-text);
  box-shadow: 0 12px 26px rgba(3, 9, 21, .14), inset 0 1px 0 rgba(255,255,255,.22);
  outline: none;
}

.lg-hub-card.is-active {
  border-color: rgba(124,231,255,.62);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.32), transparent 30%),
    linear-gradient(135deg, rgba(124,231,255,.20), rgba(167,139,250,.12));
}

.lg-hub-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
}

.lg-hub-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.92), rgba(255,255,255,.2) 25%, transparent 48%),
    linear-gradient(135deg, rgba(124,231,255,.94), rgba(167,139,250,.88));
  color: #08111f;
  box-shadow: 0 8px 16px rgba(124,231,255,.14), inset 0 1px 1px rgba(255,255,255,.45);
}

.lg-hub-icon i,
.lg-hub-icon svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.92rem;
  height: 1.92rem;
  font-size: 1.92rem;
  line-height: 1;
  color: #071426;
  opacity: .96;
}

.lg-hub-icon svg {
  stroke: currentColor;
  fill: none;
}

.lg-hub-star {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lg-hub-line);
  border-radius: 50%;
  color: var(--lg-hub-muted);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: transform .15s ease, color .15s ease, background .15s ease;
}

.lg-hub-star:hover {
  transform: scale(1.06) rotate(8deg);
}

.lg-hub-star.is-favorite {
  color: #ffcf5c;
  background: rgba(255,207,92,.14);
  border-color: rgba(255,207,92,.38);
}

.lg-hub-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 2.8rem;
  align-items: flex-end;
}

.lg-hub-card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--lg-hub-text);
  font-size: 1.12rem;
  line-height: 1.22;
  font-weight: 950;
}

.lg-hub-card-path {
  display: none !important;
}

.lg-hub-empty {
  position: relative;
  z-index: 1;
  margin: 1.1rem 1.55rem 0;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .35rem;
  border: 1px dashed rgba(124,231,255,.28);
  border-radius: 24px;
  color: var(--lg-hub-muted);
  background: rgba(124,231,255,.06);
}

.lg-hub-empty i {
  color: var(--lg-hub-primary);
  font-size: 2rem;
}

.lg-hub-empty strong {
  color: var(--lg-hub-text);
}

.lg-hub-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.55rem 1rem;
  border-top: 1px solid var(--lg-hub-line);
  color: var(--lg-hub-muted);
  font-size: .78rem;
  font-weight: 700;
}

.lg-hub-footer kbd {
  padding: .12rem .35rem;
  border: 1px solid var(--lg-hub-line);
  border-radius: 7px;
  color: var(--lg-hub-text);
  background: var(--lg-hub-bg-soft);
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .lg-hub-toggle {
    left: 14px;
    bottom: 14px;
  }

  .lg-hub-toggle-text {
    display: none;
  }

  .lg-hub-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 26px;
  }

  .lg-hub-header,
  .lg-hub-toolbar,
  .lg-hub-sections,
  .lg-hub-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lg-hub-toolbar {
    flex-direction: column;
  }

  .lg-hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .lg-hub-card {
    min-height: 118px;
    border-radius: 20px;
  }

  .lg-hub-icon {
    width: 48px;
    height: 48px;
  }

  .lg-hub-card-title {
    font-size: 1.02rem;
  }

  .lg-hub-footer {
    display: none;
  }
}

/* Liquid Hub performance pass: keep the glass look, but remove the costly per-card effects. */
.lg-hub-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: radial-gradient(circle at 20% 10%, rgba(124,231,255,.13), transparent 30%), rgba(2, 8, 23, .32) !important;
}

.lg-hub-panel {
  backdrop-filter: blur(5px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(5px) saturate(118%) !important;
  box-shadow: 0 14px 34px rgba(2, 8, 23, .20), inset 0 1px 0 rgba(255,255,255,.30) !important;
  will-change: transform, opacity;
}

.lg-hub-glow {
  display: none !important;
}

.lg-hub-card {
  box-shadow: 0 5px 14px rgba(3, 9, 21, .08), inset 0 1px 0 rgba(255,255,255,.14) !important;
  transition: transform .14s ease, border-color .14s ease, background .14s ease !important;
  contain: content;
}

.lg-hub-card::after {
  display: none !important;
}

.lg-hub-card:hover,
.lg-hub-card:focus-visible {
  box-shadow: 0 8px 18px rgba(3, 9, 21, .11), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.lg-hub-icon {
  box-shadow: 0 4px 10px rgba(124,231,255,.12), inset 0 1px 1px rgba(255,255,255,.38) !important;
}

.lg-hub-sections {
  overscroll-behavior: contain;
  contain: layout paint;
}

/* MEC Sneat layout adapter */
html body.lg-hub-mounted #layout-menu,
html body.lg-hub-mounted .layout-menu,
html body.lg-hub-mounted .layout-overlay,
html body.lg-hub-mounted .drag-target {
  transform: translateX(-112%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html body.lg-hub-mounted .layout-wrapper.layout-content-navbar .layout-container {
  padding-left: 0 !important;
}

html body.lg-hub-mounted .layout-wrapper.layout-content-navbar .layout-page,
html body.lg-hub-mounted.layout-menu-fixed .layout-page,
html body.lg-hub-mounted.layout-menu-fixed:not(.layout-menu-collapsed) .layout-page,
html body.lg-hub-mounted.layout-menu-fixed-offcanvas .layout-page,
html body.lg-hub-mounted.layout-menu-collapsed .layout-page {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
}

html body.lg-hub-mounted .layout-navbar,
html body.lg-hub-mounted.layout-navbar-fixed .layout-navbar,
html body.lg-hub-mounted .content-wrapper,
html body.lg-hub-mounted .footer {
  left: 0 !important;
  width: 100% !important;
}

html body.lg-hub-mounted .layout-menu-toggle:not(.lg-hub-toggle) {
  display: none !important;
}

html body.lg-hub-mounted .content-wrapper {
  background:
    radial-gradient(circle at 0% 0%, rgba(103, 232, 249, .16), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(216, 180, 254, .16), transparent 34%),
    linear-gradient(135deg, rgba(238, 249, 253, .82), rgba(246, 241, 255, .78) 46%, rgba(239, 253, 249, .82));
}

html.dark-style body.lg-hub-mounted .content-wrapper,
html body.dark-style.lg-hub-mounted .content-wrapper {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 0% 0%, rgba(103, 232, 249, .16), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(168, 85, 247, .16), transparent 34%),
    linear-gradient(135deg, #06111f 0%, #0b1728 52%, #111827 100%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

html body.lg-hub-mounted .card,
html body.lg-hub-mounted .navbar,
html body.lg-hub-mounted .dropdown-menu,
html body.lg-hub-mounted .modal-content {
  border-color: var(--lg-hub-line) !important;
  box-shadow: 0 14px 34px rgba(2, 8, 23, .10), inset 0 1px 0 rgba(255,255,255,.18);
}
