.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #f1f1f1;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
}

.sidebar-label {
  margin-bottom: 8px;
  font-size: 16px;
  text-transform: lowercase;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--sidebar-border);
  border-radius: 7px;
  color: #aaa;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--sidebar-hover);
  color: #f1f1f1;
  border-color: #777;
}

.icon-btn svg {
  display: block;
}

.stats-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sidebar-border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin-bottom: 14px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-value {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #888;
  text-transform: lowercase;
  margin-top: 2px;
}

.category-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 12px;
}

.category-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.category-list::-webkit-scrollbar {
  width: 4px;
}

.category-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

.category-btn {
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 100%;
  text-transform: lowercase;
}

.category-btn:hover {
  background: var(--sidebar-hover);
  color: #f1f1f1;
  border-color: #666;
}

.category-btn.active {
  background: #4a90d9;
  border-color: #4a90d9;
  color: #f1f1f1;
  font-weight: 500;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.action-btn:hover {
  background: var(--sidebar-hover);
  color: #fff;
  border-color: #888;
}

.contribute-btn {
  border-color: #4a90d9;
  color: #7ab8ee;
}

.contribute-btn:hover {
  background: rgba(74, 144, 217, 0.15);
  border-color: #7ab8ee;
  color: #fff;
}

.support-btn {
  border-color: #e63946;
  color: #f08087;
}

.support-btn:hover {
  background: rgba(230, 57, 70, 0.15);
  border-color: #f08087;
  color: #f1f1f1;
}

.category-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.category-select:focus {
  outline: none;
  border-color: #4a90d9;
}
