.menu-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.open { opacity: 1; pointer-events: all; }
.sidebar { position: fixed; top: 0; right: -292px; width: 272px; height: 100%; background: #0D2318; border-left: 1px solid #1A3A28; z-index: 300; transition: right 0.3s ease; overflow-y: auto; }
.sidebar.open { right: 0; }
.sidebar-header { background: #071510; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-logo { font-size: 1.1rem; font-weight: 900; color: #fff; line-height: 1.3; }
.sidebar-logo span { font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 300; display: block; }
.sidebar-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; }
.sidebar-body { padding: 14px 14px 20px; }
.sidebar-section { padding: 8px 8px 6px; font-size: 0.72rem; color: #3A6A50; font-weight: 700; letter-spacing: 0.5px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: #C8E0D0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  position: relative;
}
.sidebar-item::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}
.sidebar-item:hover, .sidebar-item.active { background: #152E20; color: #7AD4A0; }
.sidebar-item.active {
  box-shadow: inset 0 0 0 1px rgba(90, 200, 138, 0.12);
}
.sidebar-item.active::before { background: linear-gradient(180deg, #5AC88A, #9BE1BA); }
.sidebar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sidebar-badge { margin-right: auto; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: #152E20; color: #7AD4A0; font-weight: 600; }
.sidebar-soon { margin-right: auto; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: #0A1E14; color: #3A6A50; font-weight: 600; }
.sidebar-divider { border: none; border-top: 1px solid #1A3A28; margin: 8px 0; }
.sidebar-home { font-weight: 700; }
.sidebar-item-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sidebar-item-main { color: inherit; font-weight: 800; }
.sidebar-item-hint { color: #5D8B73; font-size: 0.74rem; font-weight: 600; line-height: 1.5; }
.sidebar-item.active .sidebar-item-hint,
.sidebar-item:hover .sidebar-item-hint { color: #8FC9AA; }
.sidebar-group { margin: 6px 0; }
.sidebar-assistant-group { margin-bottom: 10px; }
.sidebar-assistant-card {
  margin: 0 0 8px;
  border: 1px solid #1A3A28;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,42,28,0.96), rgba(13,35,24,0.96));
  overflow: hidden;
}
.sidebar-assistant-card.active {
  border-color: #356D4B;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.sidebar-parent-wrap { display: flex; align-items: stretch; margin: 0; }
.sidebar-parent-wrap.active { background: linear-gradient(180deg, rgba(21,46,32,0.96), rgba(16,38,27,0.96)); }
.sidebar-parent { position: relative; flex: 1; }
.sidebar-parent-toggle {
  width: 48px;
  border: none;
  background: none;
  color: #8AB8A0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-parent-wrap:hover .sidebar-parent-toggle,
.sidebar-parent-wrap.active .sidebar-parent-toggle { background: rgba(21, 46, 32, 0.8); color: #7AD4A0; }
.sidebar-arrow { margin-right: 8px; font-size: 0.78rem; color: #8AB8A0; transition: transform 0.2s ease; }
.sidebar-group.open .sidebar-arrow { transform: rotate(180deg); }
.sidebar-submenu { display: none; padding: 0 0 2px; }
.sidebar-group.open .sidebar-submenu { display: block; }
.sidebar-submenu-inner {
  margin: 8px 0 0;
  padding: 8px;
  border-top: 1px solid rgba(53, 109, 75, 0.45);
  background: rgba(9, 26, 18, 0.42);
  display: grid;
  gap: 6px;
}
.sidebar-subitem {
  padding-right: 16px;
  font-size: 0.84rem;
  color: #A6D6BA;
  border-radius: 12px;
}
.sidebar-subitem .sidebar-badge { background: #103120; color: #86D4A8; }
.sidebar-assistant-meta {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sidebar-current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(90, 200, 138, 0.16);
  color: #CFF2DE;
  border: 1px solid rgba(90, 200, 138, 0.28);
  font-size: 0.68rem;
  font-weight: 800;
}
.sidebar-disabled {
  opacity: 0.88;
  cursor: default;
}
.sidebar-disabled:hover {
  background: linear-gradient(180deg, rgba(17,42,28,0.96), rgba(13,35,24,0.96));
  color: #C8E0D0;
}
.sidebar-disabled:hover .sidebar-item-hint { color: #5D8B73; }
.sidebar-disabled::before { background: transparent !important; }
.sidebar-disabled .sidebar-soon {
  border: 1px solid #173423;
  border-radius: 999px;
  padding: 3px 9px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-back-btn {
  border: 1px solid #27513A;
  background: #132A1D;
  color: #D9F2E4;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-back-btn:hover { color: #fff; border-color: #3B7855; }
