.balance-card {
  min-height: 176px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--overlay-fill);
  color: var(--muted);
}

.icon-button:active {
  background: var(--overlay-fill-strong);
}

.icon-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.balance-value {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.primary-action {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  text-align: left;
}

.primary-action:active {
  background: color-mix(in srgb, var(--card-bg) 92%, var(--text));
}

.action-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: var(--button-text);
}

.action-icon .pix-mark {
  width: 23px;
  height: 23px;
}

.pix-mark {
  display: block;
  width: 27px;
  height: 27px;
  background: currentColor;
  -webkit-mask: url('/static/assets/pix.svg') center / contain no-repeat;
  mask: url('/static/assets/pix.svg') center / contain no-repeat;
}

.primary-action strong,
.primary-action small {
  display: block;
}

.primary-action strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.primary-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 7px 0;
  color: var(--link);
  font-size: 12px;
  font-weight: 500;
}

.stat-card {
  min-width: 0;
  min-height: 120px;
  padding: 14px 12px;
  border-radius: var(--radius-small);
}

.stat-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.stat-icon.blue {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-text);
}

.stat-icon.green {
  background: color-mix(in srgb, var(--positive) 12%, transparent);
  color: var(--positive);
}

.stat-icon.gold {
  background: color-mix(in srgb, var(--points) 12%, transparent);
  color: var(--points);
}

.stat-card strong,
.stat-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.activity-list {
  overflow: hidden;
  border-radius: var(--radius-small);
}

.activity-list:empty::after {
  content: 'Nenhuma movimentação ainda.';
  display: block;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.activity-item + .activity-item {
  border-top: 1px solid var(--separator);
}

.activity-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.activity-icon.in {
  background: color-mix(in srgb, var(--positive) 11%, transparent);
  color: var(--positive);
}

.activity-icon.out {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent-text);
}

.activity-info strong,
.activity-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-info strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.activity-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.activity-value {
  color: var(--text);
  font: 600 12px var(--font-family);
  text-align: right;
}

.activity-value.in {
  color: var(--positive);
}

.page-heading h1 {
  font-size: 28px;
}
