.sidebar {
  border: 1px solid rgba(165, 255, 0, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background:
    radial-gradient(circle at 16% 12%, rgba(141, 220, 57, 0.14), transparent 30%),
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34));

  position: sticky;
  top: 0;
  padding: 20px 16px;
  border-radius: .3rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);

  will-change: transform;
  width: 250px;
  margin-right: 1rem;
  flex-shrink: 0;
  min-height: calc(100vh - 64px);
  z-index: 5;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(165, 255, 0, 0.12);
  overflow: hidden;
}

@media (max-width: 1280px) {
  .sidebar {
    width: 200px;
    min-height: calc(100vh - 48px);
  }
}

nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

}

nav a.active {
  background: linear-gradient(180deg, #10270a, #0f2e07);
  box-shadow:
    0 0 0 1px rgba(141, 220, 57, 0.35) inset,
    0 10px 22px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(141, 220, 57, 0.22);
}



.sidebar_Button {
  text-decoration: none;
  position: relative;
  color: #c6ff66;
  letter-spacing: .4px;
  cursor: pointer;
  align-items: center;
  padding: .5rem;
  gap: 10px;
  border: 1px solid rgba(165, 255, 0, 0.16);
  transition: transform .08s ease, filter var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast), background .12s ease, border-color .12s ease;

  border-radius: .3rem;
  overflow: hidden;
}

.sidebar_Button:hover {
  filter: brightness(1.05);
  background: linear-gradient(180deg, #10270a, #0f2e07);
  border-color: rgba(152, 232, 76, 0.9);
  box-shadow: 0 0 0 1px rgba(152, 232, 76, 0.45) inset, 0 12px 26px rgba(0, 0, 0, 0.58), 0 0 24px rgba(152, 232, 76, 0.26);
}

.sidebar_Button:active {
  transform: translateY(1px);
}

.sidebar::before,
.sidebar_Right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(141, 220, 57, 0.16), transparent 40%);
  pointer-events: none;
  opacity: .65;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(165, 255, 0, 0.2);
  border-radius: .35rem;
  background: linear-gradient(180deg, rgba(12, 22, 8, 0.9), rgba(8, 16, 8, 0.65));
  position: relative;
  z-index: 1;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(141, 220, 57, 0.16);
}

.sidebar-tag {
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 13px;
  color: #e7ffe0;
}

.sidebar-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(231, 255, 224, 0.85);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8ddc39;
  box-shadow: 0 0 0 4px rgba(141, 220, 57, 0.2);
  display: inline-block;
  animation: bd-pulse 1.8s ease-in-out infinite;
}

.sidebar-note {
  margin: -4px 0 4px;
  padding: 0 4px 4px;
  color: rgba(231, 255, 224, 0.8);
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-widget {
  position: relative;
  border: 1px solid rgba(165, 255, 0, 0.2);
  border-radius: .4rem;
  background: linear-gradient(180deg, rgba(8, 14, 6, 0.85), rgba(5, 10, 5, 0.78));
  padding: 12px 14px;
  color: #e7ffe0;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(141, 220, 57, 0.16);
  overflow: hidden;
}

.sidebar-widget::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(141, 220, 57, 0.1), transparent 60%);
  pointer-events: none;
}

.sidebar-widget-title {
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.sidebar-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.sidebar-meter span {
  position: absolute;
  inset: 0;
  width: 72%;
  background: linear-gradient(90deg, #89ff7f, #ffe26b);
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(165, 255, 0, 0.28);
}

.sidebar-widget-meta {
  font-size: 12px;
  color: rgba(231, 255, 224, 0.7);
}

.sidebar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(141, 220, 57, 0.16);
  border: 1px solid rgba(141, 220, 57, 0.32);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  color: #dfffd8;
  text-transform: uppercase;
}

.sidebar-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(231, 255, 224, 0.8);
}

.sidebar-log li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-log .signal-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px rgba(141, 220, 57, 0.16);
}

.sidebar-close {
  display: none;
  align-self: flex-end;
  border: 1px solid rgba(165, 255, 0, 0.32);
  background: rgba(0, 0, 0, 0.35);
  color: #c6ff66;
  border-radius: .3rem;
  padding: 6px 10px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: filter var(--transition-fast), transform .08s ease, box-shadow var(--transition-fast);
}

.sidebar-close:hover {
  filter: brightness(1.05);
}

.sidebar-close:active {
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .sidebar_Button::before {
    content: "";
    position: absolute;
    -webkit-clip-path: var(--btn-clip);
    clip-path: var(--btn-clip);
    top: -1px;
    bottom: -1px;
    left: -40%;
    right: -40%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    pointer-events: none;
  }

  .sidebar_Button:hover::before {
    transform: translateX(100%);
  }
}

.mobile-toggle-bar {
  display: none;
}

.mobile-toggle-btn {
  border: 1px solid rgba(165, 255, 0, 0.32);
  background: linear-gradient(180deg, #10270a, #0f2e07);
  color: #c6ff66;
  border-radius: .4rem;
  padding: 10px 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform .08s ease, filter var(--transition-fast), box-shadow var(--transition-fast), border-color .12s ease;
}

.mobile-toggle-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(152, 232, 76, 0.9);
  box-shadow: 0 0 0 1px rgba(152, 232, 76, 0.35) inset, 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 18px rgba(152, 232, 76, 0.22);
}

.mobile-toggle-btn:active {
  transform: translateY(1px);
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .sidebar {
    position: fixed;
    inset: 16px auto 16px 16px;
    max-width: 360px;
    width: min(86vw, 320px);
    max-height: calc(100vh - 32px);
    height: auto;
    transform: translateX(-115%);
    margin-right: 0;
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.68),
      0 0 0 1px rgba(141, 220, 57, 0.25);
    z-index: 30;
    overflow: hidden;
  }

  .sidebar nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar .sidebar-close {
    display: inline-flex;
  }

  .sidebar_Button {
    width: 100%;
  }

  .mobile-toggle-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 18px;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
