/* ── FINANCE — DIGITALKIT ── */

.fin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.75rem;
}

.fin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.fin-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.fin-stat.income::before  { background: var(--green); }
.fin-stat.expense::before { background: var(--red); }
.fin-stat.balance::before { background: var(--accent); }
.fin-stat:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--sh-hover);
}

.fin-stat-label {
  font-family: 'Syne', 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: 8px;
}
.fin-stat-value {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.6px;
  margin-bottom: 4px;
}
.fin-stat.income  .fin-stat-value { color: var(--green); }
.fin-stat.expense .fin-stat-value { color: var(--red); }
.fin-stat.balance .fin-stat-value { color: var(--accent); }

.fin-stat-sub {
  font-size: 10px;
  color: var(--dim2);
}

/* Bar */
.fin-bar-wrap { margin-bottom: 1.75rem; }
.fin-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim2);
  margin-bottom: 8px;
}
.fin-bar-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}
.fin-bar-income {
  background: var(--green);
  height: 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.fin-bar-expense {
  background: var(--red);
  height: 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

/* Form */
.fin-form {
  display: grid;
  grid-template-columns: 1fr 120px 110px auto;
  gap: 8px;
  margin-bottom: 1.25rem;
}

/* List */
.fin-list-wrap {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fin-list-wrap::-webkit-scrollbar { width: 3px; }
.fin-list-wrap::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 99px;
}

.fin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.fin-item:hover {
  border-color: var(--border2);
  transform: translateX(2px);
}

.fin-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fin-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fin-item.income  .fin-item-dot { background: var(--green); }
.fin-item.expense .fin-item-dot { background: var(--red); }

.fin-item-meta  { display: flex; flex-direction: column; gap: 3px; }
.fin-item-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.fin-item-date  {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--dim2);
}

.fin-item-right { display: flex; align-items: center; gap: 10px; }
.fin-item-amount {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.3px;
}
.fin-item.income  .fin-item-amount { color: var(--green); }
.fin-item.expense .fin-item-amount { color: var(--red); }

/* Responsive */
@media (max-width: 640px) {
  .fin-summary { gap: 8px; }
  .fin-stat-value { font-size: 18px; }
  .fin-form {
    grid-template-columns: 1fr 1fr;
  }
  .fin-form .btn-add { grid-column: 1 / -1; }
}