.tx-count-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.filter-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.transaction-list::-webkit-scrollbar       { width: 4px; }
.transaction-list::-webkit-scrollbar-track { background: var(--warm); }
.transaction-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

.tx-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border-radius: 3px;
  border: 1.5px solid rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tx-item:hover { transform: translateX(3px); }

.tx-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-icon.income  { background: rgba(42, 110, 79, 0.12); }
.tx-icon.expense { background: rgba(200, 80, 42, 0.12); }

.tx-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}

.tx-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.tx-amount.income  { color: var(--income-c); }
.tx-amount.expense { color: var(--expense-c); }

.tx-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 0.2rem 0.3rem;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.tx-delete:hover { color: var(--expense-c); background: rgba(200,80,42,0.08); }

.empty-state       { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.empty-state p     { font-size: 0.9rem; }
