/* Земельный Практикум — визуальный патч бокового меню v1.0
   Меняет только оформление иконок, активного пункта и нижней CTA-кнопки. */

body.sidebar-neon-v1 .shell > .sidebar {
  isolation: isolate;
  gap: 14px;
  padding: 22px 14px 16px;
  border-right: 1px solid rgba(174, 255, 43, 0.12);
  background:
    radial-gradient(circle at 68% 6%, rgba(99, 217, 49, 0.15), transparent 27%),
    linear-gradient(180deg, #02090b 0%, #041012 52%, #020809 100%) !important;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.02),
    18px 0 46px rgba(0, 0, 0, 0.17);
}

body.sidebar-neon-v1 .shell > .sidebar::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -18px;
  right: -18px;
  bottom: 54px;
  height: 210px;
  pointer-events: none;
  background: url("/assets/sidebar-neon/sidebar-wave.svg?v=20260703-1") center bottom / 100% 100% no-repeat;
  opacity: 0.9;
  filter: saturate(1.22) drop-shadow(0 0 12px rgba(174, 255, 43, 0.18));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 100%);
}

body.sidebar-neon-v1 .shell > .sidebar > * {
  position: relative;
  z-index: 1;
}

body.sidebar-neon-v1 .sidebar .brand {
  justify-content: flex-start;
  margin: 0 8px 4px;
  gap: 11px;
}

body.sidebar-neon-v1 .sidebar .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px 13px 18px 18px;
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.2),
    0 0 18px rgba(125, 255, 62, 0.24);
}

body.sidebar-neon-v1 .sidebar .brand-text small {
  color: rgba(238, 248, 240, 0.88);
  font-size: 11px;
  letter-spacing: 1.65px;
}

body.sidebar-neon-v1 .sidebar .brand-text strong {
  color: #f5f8f6;
  font-size: 27px;
  letter-spacing: -0.6px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

body.sidebar-neon-v1 .sidebar .menu {
  gap: 4px;
}

body.sidebar-neon-v1 .sidebar .menu button {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(239, 244, 240, 0.9);
  font-weight: 650;
  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

body.sidebar-neon-v1 .sidebar .menu button:hover {
  transform: translateX(2px);
  color: #fff;
  border-color: rgba(170, 255, 50, 0.2);
  background: linear-gradient(90deg, rgba(119, 238, 44, 0.08), rgba(119, 238, 44, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

body.sidebar-neon-v1 .sidebar .menu button.active {
  color: #fff;
  border-color: rgba(180, 255, 61, 0.54);
  background:
    radial-gradient(circle at 18% 50%, rgba(173, 255, 61, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(91, 190, 40, 0.35), rgba(71, 151, 35, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(206, 255, 148, 0.04),
    0 0 0 1px rgba(117, 239, 38, 0.08),
    0 0 18px rgba(152, 255, 54, 0.18);
}

body.sidebar-neon-v1 .sidebar .menu .icon,
body.sidebar-neon-v1 .sidebar .sidebar-logout .icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(156, 255, 62, 0.28);
  border-radius: 10px;
  background: rgba(8, 22, 14, 0.74);
  color: #aefe35;
  box-shadow:
    inset 0 0 12px rgba(119, 244, 36, 0.05),
    0 0 12px rgba(135, 255, 43, 0.08);
  font-size: 0;
  transition: inherit;
}

body.sidebar-neon-v1 .sidebar .menu button:hover .icon,
body.sidebar-neon-v1 .sidebar .menu button.active .icon {
  border-color: rgba(187, 255, 89, 0.68);
  background: rgba(102, 204, 43, 0.18);
  color: #c7ff62;
  box-shadow:
    inset 0 0 14px rgba(176, 255, 72, 0.12),
    0 0 15px rgba(167, 255, 59, 0.24);
}

body.sidebar-neon-v1 .sidebar .menu .icon svg,
body.sidebar-neon-v1 .sidebar .sidebar-logout .icon svg,
body.sidebar-neon-v1 .sidebar-course-cta svg {
  width: 19px;
  height: 19px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.sidebar-neon-v1 .sidebar .menu-dot {
  width: 21px;
  height: 21px;
  background: #ff3d43;
  border: 2px solid #071012;
  box-shadow: 0 0 12px rgba(255, 61, 67, 0.42);
  font-size: 11px;
  font-weight: 850;
}

body.sidebar-neon-v1 .sidebar-course-cta {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(156, 255, 62, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 50%, rgba(155, 255, 55, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(8, 27, 18, 0.95), rgba(4, 14, 11, 0.9));
  color: #edf4ee;
  font: inherit;
  font-weight: 740;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.sidebar-neon-v1 .sidebar-course-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 255, 77, 0.48);
  background:
    radial-gradient(circle at 18% 50%, rgba(164, 255, 69, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(13, 42, 23, 0.98), rgba(5, 19, 13, 0.94));
  box-shadow:
    0 0 0 1px rgba(172, 255, 67, 0.05),
    0 0 20px rgba(147, 255, 49, 0.14),
    0 16px 34px rgba(0, 0, 0, 0.25);
}

body.sidebar-neon-v1 .sidebar-course-cta .cta-icon,
body.sidebar-neon-v1 .sidebar-course-cta .cta-arrow {
  color: #aefe35;
  display: grid;
  place-items: center;
}

body.sidebar-neon-v1 .sidebar-course-cta .cta-arrow svg {
  width: 17px;
  height: 17px;
}

body.sidebar-neon-v1 .sidebar-logout {
  flex: 0 0 auto;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  min-height: 48px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 7px 10px;
  background: rgba(4, 13, 11, 0.72);
  color: rgba(239, 244, 240, 0.86);
}

body.sidebar-neon-v1 .sidebar-logout:hover {
  background: rgba(99, 36, 36, 0.22);
  border-color: rgba(255, 113, 113, 0.25);
  color: #fff;
}

body.sidebar-neon-v1 .sidebar .help-card {
  margin-top: 0;
}

body.sidebar-neon-v1 .shell.compact-sidebar .sidebar-course-cta {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 48px;
  padding: 8px;
}

body.sidebar-neon-v1 .shell.compact-sidebar .sidebar-course-cta .cta-label,
body.sidebar-neon-v1 .shell.compact-sidebar .sidebar-course-cta .cta-arrow {
  display: none;
}

body.sidebar-neon-v1 .shell.compact-sidebar .menu .icon,
body.sidebar-neon-v1 .shell.compact-sidebar .sidebar-logout .icon {
  width: 34px;
  height: 34px;
}

@media (max-height: 860px) and (min-width: 901px) {
  body.sidebar-neon-v1 .shell > .sidebar {
    gap: 10px;
    padding-top: 15px;
  }
  body.sidebar-neon-v1 .sidebar .brand-mark {
    width: 42px;
    height: 42px;
  }
  body.sidebar-neon-v1 .sidebar .brand-text strong {
    font-size: 24px;
  }
  body.sidebar-neon-v1 .sidebar .menu {
    gap: 2px;
  }
  body.sidebar-neon-v1 .sidebar .menu button {
    min-height: 43px;
    padding-block: 5px;
  }
  body.sidebar-neon-v1 .sidebar-course-cta {
    min-height: 52px;
  }
}

@media (max-width: 900px) {
  body.sidebar-neon-v1 .shell > .sidebar {
    width: min(310px, 92vw);
  }
}
