/* Sidebar */
.sidebar {
  background: #14182b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: 1px solid #22263d;
  transition: transform 0.3s ease;
}
.brand {
  color: #153eff;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 8px rgba(21,62,255,0.6);
}

/* Меню */
.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-item {
  padding: 12px 20px;
  color: #c3c6cb;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.menu-item:hover {
  background: #153eff;
  color: #fff;
  transform: translateX(5px);
}
.menu-item.active {
  background: #153eff;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(21,62,255,0.7);
}

/* Профиль снизу */
.profile-bottom {
  margin-top: auto;
  background: #22263d;
  padding: 15px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-info { display: flex; flex-direction: column; gap: 4px; }
.username { font-size: 14px; color: #c3c6cb; }
.balance { font-size: 13px; color: #727c95; }
.profile-actions { display: flex; gap: 8px; }
.btn-primary.small { padding: 8px 12px; font-size: 14px; border-radius: 20px; }

/* Бургер */
.burger {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #c3c6cb;
  cursor: pointer;
  z-index: 1100;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 900;
}
.sidebar.open ~ .overlay { display: block; }

/* Адаптивность */
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    width: 220px;
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
  .burger { display: block; }
  .content { padding: 20px; }
}


/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 900;
}
.sidebar.open ~ .overlay { display: block; }

/* Адаптивность */
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    width: 220px;
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
  .burger { display: block; }
  .content { padding: 20px; }
}
